mirror of
https://gh.wpcy.net/https://github.com/Godfrey2712/freescout_ai_faq.git
synced 2026-04-18 06:12:28 +08:00
40 lines
2.3 KiB
HTML
40 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>CONVOSTEM AI FAQ GENERATOR</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<center><h1>CONVOSTEM GENERATOR</h1></center>
|
|
<form id="run-function-form" action="/run_function" method="post">
|
|
<label for="mailboxId">Mailbox ID:</label>
|
|
<input type="text" id="mailboxId" name="mailboxId" placeholder="Freescout Mailbox ID"><br><br>
|
|
<label for="pageSize">FAQs required:</label>
|
|
<input type="text" id="pageSize" name="pageSize" placeholder="Enter the amount of FAQs you need"><br><br>
|
|
<label for="model">AI Model:</label>
|
|
<input type="text" id="model" name="model" placeholder="Enter any model to use e.g gpt-4, gpt-3.5-turbo"><br><br>
|
|
<label for="temperature">Temperature:</label>
|
|
<input type="text" id="temperature" name="temperature" placeholder="Enter the value of how much response randomness needed"><br><br>
|
|
<label for="max_tokens">Response Length:</label>
|
|
<input type="text" id="max_tokens" name="max_tokens" placeholder="Enter the length of each AI response needed"><br><br>
|
|
<!-- Input field for API key -->
|
|
<label for="apiKey">API Key:</label>
|
|
<input type="text" id="apiKey" name="apiKey" placeholder="Enter your OpenAI API Key"><br><br>
|
|
<!-- Input field for FreeScout API key -->
|
|
<label for="freeScoutApiKey">FreeScout API Key:</label>
|
|
<input type="text" id="freeScoutApiKey" name="freeScoutApiKey" placeholder="Enter your FreeScout API Key"><br><br>
|
|
<center><button type="submit" id="submit-button">Generate</button></center>
|
|
<center><button id="continue-button">Continue Process >></button></center>
|
|
</form>
|
|
<div class="results" id="results-container">
|
|
<h3>AI and Original Results:</h3>
|
|
<ul id="results-list"></ul>
|
|
</div>
|
|
<center><button class="button download-button" id="download-button">Download Results</button></center>
|
|
</div>
|
|
<script src="{{ url_for('static', filename='app.js') }}"></script>
|
|
</body>
|
|
</html>
|