This is a bridge connection chatwoot botpress.
Chatwoot Botpress
You need ruby 3.2.2
Clone this project:
git clone https://github.com/douglara/chatwoot-botpress-bridge.git
cd chatwoot-botpress-bridge
Copy configuration file:
cp .env.example .env
Edit vars in file .env
:
BOTPRESS_ENDPOINT=
BOTPRESS_BOT_ID=
CHATWOOT_ENDPOINT=
CHATWOOT_BOT_TOKEN=
Install dependencies
bundle install
Start server:
rails s
rails test
Go to your chatwoot directory. Start a rails console in your directory.
bundle exec rails c
Inside the rails console, type the following commands to create an agent bot and get its access token. Save the retrieved token as you would need it in further step.
bot = AgentBot.create!(name: "Botpress Bot", outgoing_url: "https://CHATWOOT_BOTPRESS_BRIDGE_URL/chatwoot/webhook")
bot.access_token.token
Connect Agent Bot to your inbox by running the following command
inbox = Inbox.last
AgentBotInbox.create!(inbox: inbox, agent_bot: bot)
1 - Create new app
2 - Configure env vars
RAILS_ENV=production
CHATWOOT_ENDPOINT=
CHATWOOT_BOT_TOKEN=
BOTPRESS_ENDPOINT=
BOTPRESS_BOT_ID=
SECRET_KEY_BASE=
Generate random SECRET_KEY_BASE with
rake secret
3 - Configure http port
In http settings set Container HTTP Port
to 3000
4 - Deploy container
In deployment settings set Deploy via ImageName
with douglara/chatwoot-botpress-bridge:1
and deploy now.
Telegram: https://t.me/chatwoot_botpress_bridge