BotPress connector doesnt reply in livechat/omnichannel

Thank you for everything, I have made a very similar chatbot with Hubot, with what I was looking for and it responds correctly to Omnichannel and transfers rooms to humans, thank you for everything, if anyone is interested in doing something similar I am happy to help you

Cool.

It will be good if you could document it here for others?

Yes, of course! I am making the documentation now, it will be available here as well as on github

1 Like

I made this repository on GitHub explaining how to create a chatbot for Omnichannel/LiveChat using Hubot

Well done and thanks.

However I have a feeling that though the hubot (surprisingly) does work, it very out of date and is not really a solution.

I think it is using hubot 3.x and they are now on 11.x

If you check the package files and docker files you will see has a pile of old dependencies and probably should not be considered secure. And probably should not be used in production.

eg

# package.json
 "dependencies": {
    "@rocket.chat/sdk": "^0.2.1",
    "hubot": "3"
  },
  "peerDependencies": {
    "hubot": "3"
  },
# Docker file
FROM node:4.8.3

etcā€¦

FYI I did run it myself years back and had a compose file snippet but unless the package is updated I wonā€™t put it here.

I suggest you are extremely careful with this, and donā€™t use it in production.

Iā€™ve also noticed something in your compose file file for botpress but Iā€™ll post that in a minute.

You said above:

But the compose file you used above for botpress is from LigeroSmart and not the compose file from here:

Why is this?

I suggest you go back and use that compose file and then see what is happening inside the botpress container.

If itā€™s true, I didnā€™t realize it and I wasnā€™t aware, itā€™s still not in production. I will have to look for an updated and secure solution.

Getting your botpress install might be a better bet.

Go back and try the original compose setup and see what happens please. We may at least be able to get that fixed if it is broken.

I have tried with the two docker-compose files and have not obtained results with either, and even relatively recently I tried the botpress-connector docker-compose on another different machine, with the two machines being in a docker swarm with the same docker network and It didnā€™t come out correctly, I just imported the bot_lab.zip and changed the userā€™s credentials without two-step verification and I got no results.

So you need to understand why rather than running round trying different things without really understanding what is going wrong.

Iā€™d suggest you have a clean up, go back, follow the how to exactly, and then see what errors you have.

You should be able to look in the botpress container for errors?

If we can be specific we might be able to get this fixed. But you need to follow the Rocket guides accurately.

Iā€™m trying to made in an other machine a clean install of the docker compose in the guide of this repo

And all time rocketchat exited with code 0, im using a ubuntu 20.04 and i tryed with ubuntu 22.04 and all time give the error

So what errors do you see here?

docker logs -f rocketchat

So what have you got in your .env file?

I think the rocket/mongo part in is the same as this:

It should work if you have set the env variables correctly.