• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tool] samp-ai-chatbot
#1
samp-ai-chatbot



[Image: samp-ai-chatbot.svg] [Image: samp-ai-chatbot.svg] [Image: samp-ai-chatbot.svg]





This is? sample ai chatting bot using aiml,flask,pyaiml and pawn for sa-mp.You can add your own aiml files in sampai.aiml to change the bot behaviour.The current aiml files is from AI Foundation?s A.L.I.C.E. bot.





How to use this script?



  1. Clone this repository



    git clone https://www.github.com/sreyas-sreelal/sa...hatbot.git





  2. Compile the sample bot script in filterscripts folder and add them to your server project





  3. Install python (i recommend python 3.5 versions) dependencies using pip



    pip install flask python-aiml





  4. Start the web server using the script start.py in web-server folder



    python3 start.py





  5. Start your samp server and use the command /ask <message> to talk with the bot


Dependencies



pawn (to run sample script)



python (to run web server)


  • Flask

  • pyaiml


Images

[Image: pic1.png?raw=true]

[Image: pic2.png?raw=true]

[Image: pic3.png?raw=true]



Repository

https://github.com/Sreyas-Sreelal/samp-ai-chatbot
  Reply
#2
Interesting. I had an idea long ago to build a police dispatch bot similar to this. I thought about AIML but found it would be easier to do with HTTP requests and JSON parsing with a bot builder like RecastAI - https://cai.tools.sap/blog/build-your-fi...tional-ai/



I might still try to make this if I find the motivation.
  Reply
#3
I did start doing a plugin version of this long ago but it's still in WIP
https://github.com/Sreyas-Sreelal/samp-chatbot-plugin
  Reply


Forum Jump: