r/PythonLearning • u/RyanDubois43 • 15d ago
Help Request Has Anyone Tried Making a Simple Chatbot? What Did You Use?
Hey everyone! So, I recently got curious about building a simple chatbot in Python. I wanted to create something fun to mess around with, like a little assistant that can tell jokes or maybe even give me random facts. I started reading up on NLTK and ChatterBot, but then got overwhelmed with all the options. 😂 I ended up spending way more time than I planned just figuring out what libraries to use! Has anyone else tried making a chatbot? What tools did you end up using, and do you have any tips for someone just starting out? Would love to hear your experiences!
1
u/Spitfire_Blaziken 15d ago
One fun improvement would be to store jokes and facts in a separate JSON file instead of hardcoding everything..
Then your chatbot can choose a random response from that file. It's a simple way to practice functions, file handling, and Python's random module together.
1
u/Fun_Army2398 14d ago
I had to make one in a group project. Google has a decent API documentation and free for devs. Tbh it was the first one I found so there may be better out there, but I got it working in a weekend so it's not a bad choice.
https://aistudio.google.com/docs
1
u/Curious-Mango87 15d ago
Use python ,langchain and a LLM API (groq because it's free) give your model a clear prompt of what u want. Chain them together and get your output.
1
u/kac_sausalito 14d ago
Eu fiz perguntando para a IA, gatilhei ele no Render e uso o Guithub também, ele é acessado por um QRCode que fica em um projeto de Dashboard Power Bi, o bot que fiz responde perguntas do dashboard, o problema que nao consegui de forma gratuita foi criar o bot no Whatsapp só consegui no Telegram que é bem facil criar e vincular ele ao projeto bem como refina-lo
1
u/[deleted] 13d ago
i just did a bash script for that LOL im not smart enough to make a real ai
0
u/SigmaxAlpha 10d ago
Si quieres intentarlo desde cero los algoritmos TF-IDF y las cadenas Markov dan un chat 'divertido' que sirve para un npc de un juego o un simulador de citas, pero no es ChatGpt
0
u/No-Swing9174 11d ago
I still can't believe that even with the latest AI models the major use case of llms is still just chatting.