Building a Chatbot in 30 Minutes

Building a Chatbot in 30 Minutes

The plan 🗺️

We build a minimal support chatbot: a chat UI, a tiny backend proxy that holds the secret, and a system prompt that keeps answers helpful.

Chatbot architecture
Frontend -> your proxy -> Daqi

System prompt first 🧠

The system prompt defines personality. A good support prompt lists what you do, your tone, and when to admit you do not know.

The proxy backend

Keep the API token on the server. The frontend calls your proxy, the proxy calls us. Never expose tokens in the browser.

Time breakdown

Task Minutes
Chat UI 10
Proxy endpoint 10
System prompt + polish 10

Ship it 🚢

Deploy anywhere that can run a small Node or Python server. You now have a working chatbot built in half an hour.

Frequently asked questions ❓

Do I need a framework to build it?

No. A plain Node.js or Python server with a single proxy endpoint is enough.

Where should the API key live?

On the backend only. Never expose your token in browser-side code.

How do I stop the chatbot from making things up?

Write a tight system prompt and let the bot admit when it does not know the answer.

Can I add conversation memory?

Yes. Keep a short message history per session and send it with each request.

How to Redeem Your API Credits

Every purchase on DaqiToken includes a unique redemption code (ONEAPI-XXXXXX). Here is how to turn it into usable credits:

1. Buy a package

Get your redemption code at checkout from the TOKEN store.

2. Log in

Open the Daqi account panel. Create an account in seconds if you do not have one.

3. Redeem

Paste the code in your account and press Redeem. Credits appear instantly.

4. Create an API token

Use your token as the API key with any OpenAI-compatible client.

Frequently asked questions ❓

How long does redemption take?

Credits appear on your account instantly after you press Redeem — there is no waiting period.

What if my code does not work?

Check for extra spaces or a typo first. If it still fails, contact support with your order number and we will sort it out.

Do credits expire?

No, credits never expire. You can keep them for as long as you need.

Can I split one code across multiple accounts?

No. Each redemption code can be used only once and credits go to the account that redeems it.

Buy TOKEN credits

Related reads

Share your thoughts

Did this post help you? Leave a comment below — we read every single one and reply to as many as we can.

Comments are moderated and published after a quick review.

¿Te ayudó esta publicación? Deja un comentario abajo: leemos todos y respondemos a la mayoría.

Los comentarios se moderan y se publican tras una revisión rápida.

这篇文章对您有帮助吗?请在下方留言——我们会阅读每一条评论并尽可能回复。

评论需经过审核后才会显示。

Hat dir dieser Beitrag geholfen? Hinterlasse unten einen Kommentar – wir lesen jeden einzelnen und antworten so vielen wie möglich.

Kommentare werden moderiert und nach einer kurzen Prüfung veröffentlicht.

Cet article vous a-t-il aidé ? Laissez un commentaire ci-dessous – nous les lisons tous et répondons au plus grand nombre.

Les commentaires sont modérés et publiés après une vérification rapide.

Este artigo ajudou você? Deixe um comentário abaixo – lemos todos e respondemos à maioria.

Os comentários são moderados e publicados após uma revisão rápida.

Heeft dit bericht je geholpen? Laat hieronder een reactie achter – we lezen ze allemaal en beantwoorden zoveel mogelijk.

Reacties worden gemodereerd en na een korte controle gepubliceerd.

Czy ten post Ci pomógł? Zostaw komentarz poniżej – czytamy każdy i odpowiadamy na tyle, na ile możemy.

Komentarze są moderowane i publikowane po szybkiej weryfikacji.

Эта статья помогла вам? Оставьте комментарий ниже — мы читаем каждый и отвечаем на большинство.

Комментарии модерируются и публикуются после быстрой проверки.

هل ساعدك هذا المقال؟ اترك تعليقًا أدناه — نقرأ كل تعليق ونرد على أكبر عدد ممكن.

تتم مراجعة التعليقات وتنشر بعد التحقق السريع.

この記事は役に立ちましたか?下のコメント欄にぜひ投稿してください。すべて読んで、できる限り返信します。

コメントはモデレーション後に公開されます。

이 글이 도움이 되었나요? 아래에 댓글을 남겨주세요 — 모든 댓글을 읽고 최대한 많이 답변합니다.

댓글은 검토 후 게시됩니다.

บทความนี้ช่วยคุณได้ไหม? แสดงความคิดเห็นด้านล่าง — เราอ่านทุกความเห็นและตอบกลับให้มากที่สุด

ความคิดเห็นจะถูกตรวจสอบและเผยแพร่หลังจากการพิจารณา

האם המאמר עזר לכם? השאירו תגובה למטה — אנחנו קוראים כל תגובה ועונים לרובן.

תגובות עוברות ניהול ומתפרסמות לאחר בדיקה מהירה.

Bài viết này có giúp bạn không? Hãy để lại bình luận bên dưới — chúng tôi đọc từng bình luận và phản hồi nhiều nhất có thể.

Bình luận được kiểm duyệt và xuất hiện sau khi xét duyệt nhanh.

Apakah artikel ini membantu Anda? Tinggalkan komentar di bawah — kami membaca semuanya dan membalas sebanyak mungkin.

Komentar dimoderasi dan dipublikasikan setelah pemeriksaan cepat.

Бұл мақала сізге көмектесті ме? Төменде пікір қалдырыңыз — біз әрқайсысын оқып, мүмкіндігінше көбіне жауап береміз.

Пікірлер модерациядан өтіп, тексерілгеннен кейін жарияланады.

Comments (201)

Function Calling and JSON Mode: Structured Outputs Without the Guesswork - DaqiToken 2026/9/6
[…] Building a Chatbot in 30 Minutes […]
Harper Scott 2026/8/13
Thanks for sharing your experience. It really helps beginners.
Paula Salinas 2026/8/13
On point as usual ⭐
Owen Hughes 2026/8/13
Super useful, sharing it 📤
Paul Zimmermann 2026/8/13
Good read. The examples make it easy to understand.
Amelie Fuchs 2026/8/12
This is so helpful. Bookmarking this for later.
Pablo Navarro 2026/8/12
Exactly what I needed 💯
Hanna Jankowska 2026/8/12
Well structured and easy to follow. Thanks a lot! 👏
Ethan Martinez 2026/8/12
Very thorough. This will save people a lot of research time. photo
Andi Pratama 2026/8/12
On point as usual ⭐
Charlotte Moore 2026/8/12
Exactly what I needed 💯
Daan Willems 2026/8/12
Great post! 🙌
Wulan Puspita 2026/8/12
Super useful, sharing it 📤
James Wilson 2026/8/12
Well structured and easy to follow. Thanks a lot! 👏 photo
Lily Turner 2026/8/12
Good info, keep it up 🚀
Ana Martinez 2026/8/12
Helpful as always ✨
Ella Murphy 2026/8/12
Learned something new today. Appreciate the detail here.
Zoe Barnes 2026/8/11
Thanks, very useful 👍
Lily Turner 2026/8/11
On point as usual ⭐
Henry Griffin 2026/8/11
Nice write-up 👏
Lucas Hernandez 2026/8/11
Great post! 🙌
Mia Garcia 2026/8/11
Very clear, thanks! 🙏
Henry Griffin 2026/8/10
Well structured and easy to follow. Thanks a lot! 👏 One tip: install everything at home before you leave, saves so much time. photo
Harper Scott 2026/8/10
Learned something new today. Appreciate the detail here. My friends asked how I stayed online the whole time — now they are switching too.
Andres Rios 2026/8/10
Very clear, thanks! 🙏
Ethan Martinez 2026/8/10
Thanks for sharing your experience. It really helps beginners. I have tested three similar products and this is by far the most stable.
Felipe Alves 2026/8/10
Well structured and easy to follow. Thanks a lot! 👏
Caleb Bennett 2026/8/10
I was about to ask this exact question. Perfect timing! The customer support chat answered me at 2 AM, that is real dedication. photo
Joko Susilo 2026/8/10
Thanks, very useful 👍
Ratna Sari 2026/8/10
Great post! 🙌
Samuel Reed 2026/8/10
Good info, keep it up 🚀
Ana Souza 2026/8/9
Helpful as always ✨
Leticia Fernandes 2026/8/9
Thanks for sharing your experience. It really helps beginners.
Jules Laurent 2026/8/9
Good read. The examples make it easy to understand. Compared to the big carriers this is honestly a no-brainer.
Niklas Peters 2026/8/9
Thanks for sharing your experience. It really helps beginners.
Zoe Barnes 2026/8/8
Good info, keep it up 🚀
Theo Roux 2026/8/8
Very thorough. This will save people a lot of research time.
Matthew Shaw 2026/8/8
Nice write-up! Looking forward to more content like this. ✨ The customer support chat answered me at 2 AM, that is real dedication. photo
Sophia Lewis 2026/8/7
Thanks for sharing your experience. It really helps beginners. My friends asked how I stayed online the whole time — now they are switching too. photo
Thijs Mulder 2026/8/7
Good info, keep it up 🚀
Ava Thompson 2026/8/7
Well structured and easy to follow. Thanks a lot! 👏
Jack Powell 2026/8/7
Good read. The examples make it easy to understand. One tip: install everything at home before you leave, saves so much time. photo
Chloe Petit 2026/8/7
Nice write-up! Looking forward to more content like this. ✨
Sophia Lewis 2026/8/7
Love this 🔥
Putri Maharani 2026/8/7
Good read. The examples make it easy to understand.
Matthew Shaw 2026/8/7
Very clear, thanks! 🙏 photo
Lily Turner 2026/8/7
Very clear, thanks! 🙏
Isabella Taylor 2026/8/6
Helpful as always ✨
Michael Brown 2026/8/6
Super useful, sharing it 📤
Charlotte Moore 2026/8/6
Learned something new today. Appreciate the detail here. My friends asked how I stayed online the whole time — now they are switching too.
Lucas Hernandez 2026/8/6
Love this 🔥
Michael Brown 2026/8/6
I was about to ask this exact question. Perfect timing! The customer support chat answered me at 2 AM, that is real dedication.
Ethan Martinez 2026/8/5
Helpful as always ✨
Emily Carter 2026/8/5
Great insights 💡
Lucia Torres 2026/8/4
Clear and practical, exactly what I was looking for.
Charlotte Moore 2026/8/4
Nice write-up! Looking forward to more content like this. ✨ The customer support chat answered me at 2 AM, that is real dedication.
David Miller 2026/8/4
On point as usual ⭐
Nora Russell 2026/8/3
Nice write-up 👏
Enzo Blanchard 2026/8/3
I was about to ask this exact question. Perfect timing! One tip: install everything at home before you leave, saves so much time.
Harper Scott 2026/8/3
Well structured and easy to follow. Thanks a lot! 👏 Compared to the big carriers this is honestly a no-brainer.
Mia Richter 2026/8/3
Thanks, very useful 👍
Charlotte Moore 2026/8/2
Clear and practical, exactly what I was looking for.
Isabella Taylor 2026/8/2
Very thorough. This will save people a lot of research time. Compared to the big carriers this is honestly a no-brainer.
Mia Garcia 2026/8/2
Clear and practical, exactly what I was looking for. Compared to the big carriers this is honestly a no-brainer.
Logan Anderson 2026/8/2
Helpful as always ✨ photo
Charlotte Moore 2026/8/2
Great insights 💡
Samuel Reed 2026/8/2
Great post, keep up the good work! 👍 Compared to the big carriers this is honestly a no-brainer.
Penelope Hunt 2026/8/2
I was about to ask this exact question. Perfect timing! Compared to the big carriers this is honestly a no-brainer.
Raul Guerrero 2026/8/1
Thanks, very useful 👍
Penelope Hunt 2026/8/1
Nice write-up! Looking forward to more content like this. ✨
Kacper Lewandowski 2026/8/1
Nice write-up 👏
Nathan Foster 2026/8/1
Learned something new today. Appreciate the detail here.
Grace Roberts 2026/8/1
Clear and practical, exactly what I was looking for.
Nele Brandt 2026/8/1
Very thorough. This will save people a lot of research time. photo
Daan de Vries 2026/8/1
This is so helpful. Bookmarking this for later. I also tried it on a 10-day road trip and it never missed a beat. photo
Valeria Mendoza 2026/8/1
This is so helpful. Bookmarking this for later.
Penelope Hunt 2026/8/1
Well structured and easy to follow. Thanks a lot! 👏
Louis Durand 2026/7/31
Great insights 💡
Noah Robinson 2026/7/31
Clear and practical, exactly what I was looking for.
Sara van Dijk 2026/7/31
Clear and practical, exactly what I was looking for. I also tried it on a 10-day road trip and it never missed a beat.
Penelope Hunt 2026/7/31
Well structured and easy to follow. Thanks a lot! 👏 The customer support chat answered me at 2 AM, that is real dedication.
Isabella Taylor 2026/7/31
Exactly what I needed 💯
Henry Griffin 2026/7/30
Bookmarked! 📌 photo
Sophia Lewis 2026/7/30
Great post! 🙌
Daniel Fields 2026/7/30
Thanks, very useful 👍
Ella Murphy 2026/7/30
Nice write-up! Looking forward to more content like this. ✨ The customer support chat answered me at 2 AM, that is real dedication. photo
Nia Kurnia 2026/7/29
On point as usual ⭐ photo
Noah Robinson 2026/7/29
Great post, keep up the good work! 👍
Grace Roberts 2026/7/29
On point as usual ⭐ photo
Adam Nichols 2026/7/29
On point as usual ⭐
Sarah Rousseau 2026/7/29
On point as usual ⭐
Sofia Ortiz 2026/7/29
Nice write-up 👏
Lily Turner 2026/7/29
On point as usual ⭐ photo
Penelope Hunt 2026/7/28
Clear and practical, exactly what I was looking for.
Amelia Young 2026/7/28
Well structured and easy to follow. Thanks a lot! 👏 photo
Lily Turner 2026/7/28
Nice write-up! Looking forward to more content like this. ✨
Elijah King 2026/7/28
Nice write-up! Looking forward to more content like this. ✨ I also tried it on a 10-day road trip and it never missed a beat.
Gustavo Lima 2026/7/28
This is so helpful. Bookmarking this for later.
Isabella Taylor 2026/7/28
Thanks for sharing your experience. It really helps beginners. I have tested three similar products and this is by far the most stable.
Nora Russell 2026/7/28
Well structured and easy to follow. Thanks a lot! 👏
Szymon Mazur 2026/7/27
Very clear, thanks! 🙏 photo
Liam Walker 2026/7/27
Exactly what I needed 💯 photo
Niels Cornelissen 2026/7/27
Well structured and easy to follow. Thanks a lot! 👏 photo
Jack Powell 2026/7/26
Great post, keep up the good work! 👍 My friends asked how I stayed online the whole time — now they are switching too.
Ruby Price 2026/7/26
Bookmarked! 📌
Mia Garcia 2026/7/26
On point as usual ⭐ photo
Ethan Martinez 2026/7/26
Very clear, thanks! 🙏
Henry Griffin 2026/7/25
Very clear, thanks! 🙏
Liam Walker 2026/7/25
Bookmarked! 📌
Sophia Lewis 2026/7/25
Nice write-up! Looking forward to more content like this. ✨ One tip: install everything at home before you leave, saves so much time.
Emma Neumann 2026/7/25
On point as usual ⭐
Romain Guerin 2026/7/25
Great post, keep up the good work! 👍
Olivia Davis 2026/7/25
Thanks, very useful 👍 photo
Ava Thompson 2026/7/24
Clear and practical, exactly what I was looking for. Compared to the big carriers this is honestly a no-brainer.
Noor de Boer 2026/7/24
Very clear, thanks! 🙏
Jack Powell 2026/7/23
Bookmarked! 📌 photo
Zoe Barnes 2026/7/23
Exactly what I needed 💯
Sophia Lewis 2026/7/23
Very thorough. This will save people a lot of research time.
Maria Lopez 2026/7/23
Very clear, thanks! 🙏
Nathan Lefevre 2026/7/23
On point as usual ⭐
Harper Scott 2026/7/22
Learned something new today. Appreciate the detail here. The customer support chat answered me at 2 AM, that is real dedication. photo
Ruby Price 2026/7/22
Great post, keep up the good work! 👍
Matthew Shaw 2026/7/22
Thanks, very useful 👍
Lucas Hernandez 2026/7/21
Nice write-up! Looking forward to more content like this. ✨ I also tried it on a 10-day road trip and it never missed a beat.
David Miller 2026/7/21
Great post! 🙌
Manon Moreau 2026/7/21
This is so helpful. Bookmarking this for later. The customer support chat answered me at 2 AM, that is real dedication.
Aria Collins 2026/7/21
Thanks for sharing your experience. It really helps beginners. My friends asked how I stayed online the whole time — now they are switching too. photo
Jack Powell 2026/7/20
Good info, keep it up 🚀 photo
Jonas Wagner 2026/7/20
Good info, keep it up 🚀
Fernando Cruz 2026/7/20
Well structured and easy to follow. Thanks a lot! 👏 My friends asked how I stayed online the whole time — now they are switching too.
Noah Robinson 2026/7/20
Learned something new today. Appreciate the detail here. One tip: install everything at home before you leave, saves so much time.
Lea Simon 2026/7/19
Thanks for sharing your experience. It really helps beginners.
Jack Powell 2026/7/19
Good read. The examples make it easy to understand. The customer support chat answered me at 2 AM, that is real dedication.
Michael Brown 2026/7/19
Good read. The examples make it easy to understand.
Fernanda Cardoso 2026/7/19
Bookmarked! 📌
Ryan Mitchell 2026/7/18
Well structured and easy to follow. Thanks a lot! 👏 Compared to the big carriers this is honestly a no-brainer.
Hugo Bernard 2026/7/18
Good read. The examples make it easy to understand.
David Miller 2026/7/18
This is so helpful. Bookmarking this for later. I also tried it on a 10-day road trip and it never missed a beat.
Elijah King 2026/7/18
Good info, keep it up 🚀
Milan Visser 2026/7/18
Bookmarked! 📌
Lily Turner 2026/7/18
This is so helpful. Bookmarking this for later. I have tested three similar products and this is by far the most stable.
Maximilian Hoffmann 2026/7/18
Love this 🔥 photo
Sarah Johnson 2026/7/18
Thanks for sharing your experience. It really helps beginners. I have tested three similar products and this is by far the most stable.
Sri Wahyuni 2026/7/17
Super useful, sharing it 📤
Aria Collins 2026/7/17
Great post, keep up the good work! 👍 photo
Amelia Young 2026/7/17
Clear and practical, exactly what I was looking for. I also tried it on a 10-day road trip and it never missed a beat. photo
Sophia Lewis 2026/7/17
Learned something new today. Appreciate the detail here.
Mariana Carvalho 2026/7/17
Great insights 💡
Rafael Pereira 2026/7/17
Clear and practical, exactly what I was looking for. One tip: install everything at home before you leave, saves so much time.
Lars Bos 2026/7/17
Clear and practical, exactly what I was looking for.
Harper Scott 2026/7/16
Nice write-up! Looking forward to more content like this. ✨ My friends asked how I stayed online the whole time — now they are switching too.
Mason Clark 2026/7/16
Great insights 💡 photo
Aria Collins 2026/7/16
Thanks, very useful 👍
Jack Powell 2026/7/16
Very clear, thanks! 🙏
Daniel Fields 2026/7/16
Well structured and easy to follow. Thanks a lot! 👏
Michael Brown 2026/7/16
Helpful as always ✨
David Miller 2026/7/16
Clear and practical, exactly what I was looking for. I have tested three similar products and this is by far the most stable.
Ivy Murray 2026/7/16
Nice write-up! Looking forward to more content like this. ✨
Noah Robinson 2026/7/15
Very thorough. This will save people a lot of research time. My friends asked how I stayed online the whole time — now they are switching too.
Caleb Bennett 2026/7/15
Nice write-up 👏
Ruby Price 2026/7/14
Exactly what I needed 💯
Maya Anggraini 2026/7/14
Great post, keep up the good work! 👍
Nora Russell 2026/7/14
Good info, keep it up 🚀
Sarah Johnson 2026/7/14
Nice write-up 👏
Tomasz Grabowski 2026/7/14
I was about to ask this exact question. Perfect timing! The customer support chat answered me at 2 AM, that is real dedication.
Sarah Johnson 2026/7/14
Clear and practical, exactly what I was looking for. One tip: install everything at home before you leave, saves so much time. photo
Mia Garcia 2026/7/13
Good read. The examples make it easy to understand. One tip: install everything at home before you leave, saves so much time.
James Wilson 2026/7/13
I was about to ask this exact question. Perfect timing! My friends asked how I stayed online the whole time — now they are switching too.
Sarah Johnson 2026/7/13
Good info, keep it up 🚀 photo
Henry Griffin 2026/7/13
Super useful, sharing it 📤
Daniel Fields 2026/7/12
Well structured and easy to follow. Thanks a lot! 👏 I also tried it on a 10-day road trip and it never missed a beat.
Harper Scott 2026/7/11
This is so helpful. Bookmarking this for later. The customer support chat answered me at 2 AM, that is real dedication.
Mason Clark 2026/7/11
On point as usual ⭐
Logan Anderson 2026/7/11
I was about to ask this exact question. Perfect timing! I also tried it on a 10-day road trip and it never missed a beat.
Budi Santoso 2026/7/10
Learned something new today. Appreciate the detail here. One tip: install everything at home before you leave, saves so much time.
Ethan Martinez 2026/7/10
Great post! 🙌
Sem Bakker 2026/7/10
Great post, keep up the good work! 👍 Compared to the big carriers this is honestly a no-brainer.
Daniel Fields 2026/7/10
Great post, keep up the good work! 👍 My friends asked how I stayed online the whole time — now they are switching too. photo
Piotr Kaczmarek 2026/7/10
Very clear, thanks! 🙏
Felix Weber 2026/7/10
Bookmarked! 📌
James Wilson 2026/7/9
I was about to ask this exact question. Perfect timing!
Penelope Hunt 2026/7/9
Exactly what I needed 💯
Fleur Hendriks 2026/7/9
On point as usual ⭐ photo
Ethan Martinez 2026/7/9
Bookmarked! 📌
Zoe Barnes 2026/7/8
This is so helpful. Bookmarking this for later. photo
Ruby Price 2026/7/8
I was about to ask this exact question. Perfect timing!
Liam Walker 2026/7/8
Thanks for sharing your experience. It really helps beginners. Compared to the big carriers this is honestly a no-brainer.
Nora Russell 2026/7/8
On point as usual ⭐
Beatriz Almeida 2026/7/8
Very clear, thanks! 🙏
Grace Roberts 2026/7/8
Very clear, thanks! 🙏
Fajar Nugroho 2026/7/7
Bookmarked! 📌
James Wilson 2026/7/7
Nice write-up! Looking forward to more content like this. ✨
Jack Powell 2026/7/7
On point as usual ⭐ photo
Jack Powell 2026/7/6
Well structured and easy to follow. Thanks a lot! 👏 I also tried it on a 10-day road trip and it never missed a beat.
Nathan Foster 2026/7/6
Well structured and easy to follow. Thanks a lot! 👏
Ivy Murray 2026/7/6
This is so helpful. Bookmarking this for later.
Margaux Henry 2026/7/6
Nice write-up! Looking forward to more content like this. ✨ One tip: install everything at home before you leave, saves so much time.
Javier Morales 2026/7/6
Good read. The examples make it easy to understand.
Adam Nichols 2026/7/6
I was about to ask this exact question. Perfect timing!
Stella Hayes 2026/7/5
Super useful, sharing it 📤 photo
Adam Nichols 2026/7/5
Good info, keep it up 🚀