open.mp forum
[Tool] samp-ai-chatbot - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13)
--- Thread: [Tool] samp-ai-chatbot (/showthread.php?tid=135)



samp-ai-chatbot - SyS - 2019-04-14

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/samp-ai-chatbot.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


RE: samp-ai-chatbot - Chase - 2019-04-15

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-first-bot-with-sap-conversational-ai/



I might still try to make this if I find the motivation.


RE: samp-ai-chatbot - SyS - 2019-04-17

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