commit 4ee3e77df0af03bbc9c4c22126a0522ef6a33d0c
Author: root <root@hub.scroll.pub>
Date: 2024-12-29 17:52:23 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..22215d8
--- /dev/null
+++ b/body.html
@@ -0,0 +1,36 @@
+<header>
+ <h1>Voice Agents Dashboard</h1>
+ <p>Create and manage your voice agents with ease using Vapi API.</p>
+</header>
+
+<main>
+ <section id="agent-creation">
+ <h2>Create New Voice Agent</h2>
+ <form id="agent-form">
+ <label for="agent-name">Agent Name:</label>
+ <input type="text" id="agent-name" name="agent-name" required>
+
+ <label for="agent-description">Description:</label>
+ <textarea id="agent-description" name="agent-description" required></textarea>
+
+ <label for="agent-language">Language:</label>
+ <select id="agent-language" name="agent-language" required>
+ <option value="en">English</option>
+ <option value="es">Spanish</option>
+ <option value="fr">French</option>
+ <option value="de">German</option>
+ </select>
+
+ <button type="submit">Create Agent</button>
+ </form>
+ </section>
+
+ <section id="agent-list">
+ <h2>Your Voice Agents</h2>
+ <ul id="agents"></ul>
+ </section>
+</main>
+
+<footer>
+ <p>Powered by Vapi API</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..b156620
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://voiceagents.scroll.pub
+metaTags
+editButton /edit.html
+title Voice Agents Dashboard
+style.css
+body.html
+script.js
\ No newline at end of file
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..ec063df
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "cd88de53-0327-4462-8861-3e3e004429bb",
+ "object": "chat.completion",
+ "created": 1735494727,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nvoiceagents.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://voiceagents.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Voice Agents Dashboard\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>Voice Agents Dashboard</h1>\n <p>Create and manage your voice agents with ease using Vapi API.</p>\n</header>\n\n<main>\n <section id=\"agent-creation\">\n <h2>Create New Voice Agent</h2>\n <form id=\"agent-form\">\n <label for=\"agent-name\">Agent Name:</label>\n <input type=\"text\" id=\"agent-name\" name=\"agent-name\" required>\n \n <label for=\"agent-description\">Description:</label>\n <textarea id=\"agent-description\" name=\"agent-description\" required></textarea>\n \n <label for=\"agent-language\">Language:</label>\n <select id=\"agent-language\" name=\"agent-language\" required>\n <option value=\"en\">English</option>\n <option value=\"es\">Spanish</option>\n <option value=\"fr\">French</option>\n <option value=\"de\">German</option>\n </select>\n \n <button type=\"submit\">Create Agent</button>\n </form>\n </section>\n\n <section id=\"agent-list\">\n <h2>Your Voice Agents</h2>\n <ul id=\"agents\"></ul>\n </section>\n</main>\n\n<footer>\n <p>Powered by Vapi API</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #f5f5f5;\n --text-color: #333;\n --border-radius: 8px;\n --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n line-height: 1.6;\n margin: 0;\n padding: 0;\n color: var(--text-color);\n background-color: var(--secondary-color);\n}\n\nheader {\n background-color: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nmain {\n padding: 2rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\nsection {\n background: white;\n padding: 1.5rem;\n margin-bottom: 2rem;\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n}\n\nform {\n display: grid;\n gap: 1rem;\n}\n\nlabel {\n font-weight: bold;\n}\n\ninput, textarea, select {\n width: 100%;\n padding: 0.5rem;\n border: 1px solid #ddd;\n border-radius: var(--border-radius);\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n padding: 0.75rem;\n border: none;\n border-radius: var(--border-radius);\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: darken(var(--primary-color), 10%);\n}\n\n#agent-list ul {\n list-style: none;\n padding: 0;\n}\n\n#agent-list li {\n background: var(--secondary-color);\n padding: 1rem;\n margin-bottom: 0.5rem;\n border-radius: var(--border-radius);\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background-color: var(--primary-color);\n color: white;\n}\n\n@media (max-width: 600px) {\n main {\n padding: 1rem;\n }\n\n header {\n padding: 1rem;\n }\n}\n---script.js---\ndocument.getElementById('agent-form').addEventListener('submit', function(event) {\n event.preventDefault();\n \n const agentName = document.getElementById('agent-name').value;\n const agentDescription = document.getElementById('agent-description').value;\n const agentLanguage = document.getElementById('agent-language').value;\n \n const agent = {\n name: agentName,\n description: agentDescription,\n language: agentLanguage\n };\n \n addAgentToList(agent);\n clearForm();\n});\n\nfunction addAgentToList(agent) {\n const agentList = document.getElementById('agents');\n \n const li = document.createElement('li');\n li.innerHTML = `\n <h3>${agent.name}</h3>\n <p>${agent.description}</p>\n <small>Language: ${agent.language}</small>\n `;\n \n agentList.appendChild(li);\n}\n\nfunction clearForm() {\n document.getElementById('agent-form').reset();\n}\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 248,
+ "completion_tokens": 1045,
+ "total_tokens": 1293,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 248
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..c46d811
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# voiceagents.scroll.pub
+Website generated by DeepSeek from prompt: create a working dashboard where users can create voice agents using vapi api
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..ece64ef
--- /dev/null
+++ b/script.js
@@ -0,0 +1,33 @@
+document.getElementById('agent-form').addEventListener('submit', function(event) {
+ event.preventDefault();
+
+ const agentName = document.getElementById('agent-name').value;
+ const agentDescription = document.getElementById('agent-description').value;
+ const agentLanguage = document.getElementById('agent-language').value;
+
+ const agent = {
+ name: agentName,
+ description: agentDescription,
+ language: agentLanguage
+ };
+
+ addAgentToList(agent);
+ clearForm();
+});
+
+function addAgentToList(agent) {
+ const agentList = document.getElementById('agents');
+
+ const li = document.createElement('li');
+ li.innerHTML = `
+ <h3>${agent.name}</h3>
+ <p>${agent.description}</p>
+ <small>Language: ${agent.language}</small>
+ `;
+
+ agentList.appendChild(li);
+}
+
+function clearForm() {
+ document.getElementById('agent-form').reset();
+}
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..6a8c993
--- /dev/null
+++ b/style.css
@@ -0,0 +1,96 @@
+:root {
+ --primary-color: #4a90e2;
+ --secondary-color: #f5f5f5;
+ --text-color: #333;
+ --border-radius: 8px;
+ --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+}
+
+body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ line-height: 1.6;
+ margin: 0;
+ padding: 0;
+ color: var(--text-color);
+ background-color: var(--secondary-color);
+}
+
+header {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 2rem;
+ text-align: center;
+}
+
+main {
+ padding: 2rem;
+ max-width: 800px;
+ margin: 0 auto;
+}
+
+section {
+ background: white;
+ padding: 1.5rem;
+ margin-bottom: 2rem;
+ border-radius: var(--border-radius);
+ box-shadow: var(--box-shadow);
+}
+
+form {
+ display: grid;
+ gap: 1rem;
+}
+
+label {
+ font-weight: bold;
+}
+
+input, textarea, select {
+ width: 100%;
+ padding: 0.5rem;
+ border: 1px solid #ddd;
+ border-radius: var(--border-radius);
+}
+
+button {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 0.75rem;
+ border: none;
+ border-radius: var(--border-radius);
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+}
+
+button:hover {
+ background-color: darken(var(--primary-color), 10%);
+}
+
+#agent-list ul {
+ list-style: none;
+ padding: 0;
+}
+
+#agent-list li {
+ background: var(--secondary-color);
+ padding: 1rem;
+ margin-bottom: 0.5rem;
+ border-radius: var(--border-radius);
+}
+
+footer {
+ text-align: center;
+ padding: 1rem;
+ background-color: var(--primary-color);
+ color: white;
+}
+
+@media (max-width: 600px) {
+ main {
+ padding: 1rem;
+ }
+
+ header {
+ padding: 1rem;
+ }
+}
\ No newline at end of file