DEV Community

Shelwyn Corte
Shelwyn Corte

Posted on

Python chatbot under 10 lines of code.

Here is how you can create a #python #chatbot under 10 lines of code leveraging #googleGemini LLM

1 - Hit https://aistudio.google.com/apikey and get yourself an FREE API-KEY
2 - install python and pip install google-generative-ai
3 - create a python file (bot.py), use the below code

Image description

Top comments (0)