After weeks of tinkering, I finally managed to set up an AI bot, similar to discobot but one that learns and is more responsive. Here is how I did it for anyone interested in setting it up. There is quite a few steps, but once you get it all set up, the result is amazing.
export HUBOT_DISCOURSE_USERNAME=(bot’s username, don’t do discobot)
export HUBOT_DISCOURSE_KEY=(your bot-user’s api key, not the site api)
export HUBOT_DISCOURSE_SERVER=(discourse url)
export API_AI_CLIENT_ACCESS_TOKEN=(dialogflow bot server api, found in the settings)
So, as I discussed above, I hit an error installing NPM. Error was using root when installing, a common gotcha that leads to a lot of EACCES and permission errors. This is a well-documented error. I believe a lot of people are on Digital Ocean. Follow their documentation for correctly setting up NPM on your droplet.
It’s actually been awhile since I’ve used the chatbot, but am planning on using it again for an upcoming project. Mostly it was used for training sessions for teachers, they would go through a course using chatbot and learn about teaching through the dialogue. Let me know if you have any questions.
Before I dive into implementing this on my Discourse (and since I am only somewhat proficient, but good at following directions ) … are these instructions in this thread still working? Or… is there a more current or preferred way to integrate an AI bot?