Giter Site home page Giter Site logo

chatwoot-botpress-bridge's Introduction

About

This is a bridge connection chatwoot botpress.

Chatwoot Botpress

Running local

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

Running tests

rails test

Create an agent bot

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)

Deploy CapRover

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.

Community to help

Telegram: https://t.me/chatwoot_botpress_bridge

Articles

chatwoot-botpress-bridge's People

Contributors

douglara avatar zaikoxander avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chatwoot-botpress-bridge's Issues

Unable to deploy on CapRover

I'm trying to deploy using caprover but I'm getting this error:

Deploy failed!
Error: (HTTP code 404) unexpected - manifest for douglara/chatwoot-botpress-bridge:latest not found: manifest unknown: manifest unknown

Botpress welcome example issues

Hi. Great great bridge . thank you .. big question .

I have setup the Botpress example where it welcomes you and then ask if I want to talk about monkeys or giraffe . on chatwoot there are two clickable alternatives .. monkeys or giraffe .. if I click on any of the buttons say giraffe a blue bubble appears as expected with the option girrafe written in the bubble .. but then nothing happens .. if I however write with the keyboard message : giraffe then the conversation continues ... what's wrong here . is it something wrong in the bridge, my setup or is it something that needs to be changed in the botpress example to make this work ???? Users would be expecting that if they click any of the options that the bot presents the conversation would continue .. but it don't .. until you write it ... bit clicking should be expecting to work ... please help .

Problema ao criar BOT

image
Ola estou criando a conexao do botpress com o chatwoot e esta apresentando esse erro

Botpress buttons of choices not working

I try this with the latest version of chatwoot and botpress, when i click the botpress choices button the text is typed directly to the chat as if the user type it, unfortunately the transition is not working, the choices button disappear and nothing happen. But, if i (as a user) type the button text or value directly and send it, the transition works. Any idea what's going on here?

How to make bot to agent handoff?

I tried sending the same payload method used on Dialogflow for Chatwoot:
{
"action": "handoff"
}

Which text or payload should I send from Botpress for the conversation to be handed to an agent?
In case there's no option to do so, can you please tell me if this bridge sends Botpress any info that can be stored on a variable, and then used on a Botpress API call to Chatwoot's API?
This way I could use conversation_id to mark the conversation as Open (instead of Pending).

Thanks!

Connection to cloud botpress

Hey!

First of all, thank you very much for your awesome bridge implementation! I've already given it a star. =)

I have the following question. Is the current could botpress supported, right? According to the documentation here the Cloud API URL is "https://api.botpress.cloud", which I set as BOTPRESS_ENDPOINT env variable. Of course I set the correct BOTPRESS_BOT_ID. I used self-hosted Chatwoot version 3.2.2.

So given the input in the Chatwoot widget
screenshot

The bot does not reply, but the communication to the bridge does work. Here are the logs

`Started POST "/chatwoot/webhook" for 18.196.101.121 at 2023-10-26 12:08:49 +0000
Processing by ChatwootController#webhook as JSON
Parameters: {"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"text", "content"=>"Hello!", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>43, "content"=>"Hello!", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>0, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:48.858Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"text", "content_attributes"=>{}, "sender_type"=>"Contact", "sender_id"=>20, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Hello!", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}, "sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>0, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.858Z", "id"=>43, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"incoming", "private"=>false, "sender"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "avatar"=>"", "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>""}, "source_id"=>nil, "event"=>"message_created", "chatwoot"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"text", "content"=>"Hello!", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>43, "content"=>"Hello!", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>0, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:48.858Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"text", "content_attributes"=>{}, "sender_type"=>"Contact", "sender_id"=>20, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Hello!", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}, "sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>0, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.858Z", "id"=>43, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"incoming", "private"=>false, "sender"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "avatar"=>"", "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>""}, "source_id"=>nil, "event"=>"message_created"}}
Started POST "/chatwoot/webhook" for 3.70.207.159 at 2023-10-26 12:08:49 +0000
Processing by ChatwootController#webhook as JSON
Parameters: {"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"text", "content"=>"Geben Sie dem Team einen Weg, Sie zu erreichen.", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:48.973Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>0, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.959Z", "id"=>44, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_created", "chatwoot"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"text", "content"=>"Geben Sie dem Team einen Weg, Sie zu erreichen.", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:48.973Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>0, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.959Z", "id"=>44, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_created"}}
Completed 200 OK in 0ms (Views: 0.1ms | Allocations: 110)

Started POST "/chatwoot/webhook" for 18.196.101.121 at 2023-10-26 12:08:49 +0000
Processing by ChatwootController#webhook as JSON
Parameters: {"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"input_email", "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:48.973Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>0, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.973Z", "id"=>45, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_created", "chatwoot"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"input_email", "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:48.973Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>0, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.973Z", "id"=>45, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_created"}}
Completed 200 OK in 0ms (Views: 0.1ms | Allocations: 110)

Started POST "/chatwoot/webhook" for 18.196.101.121 at 2023-10-26 12:08:49 +0000
Processing by ChatwootController#webhook as JSON
Parameters: {"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"text", "content"=>"Geben Sie dem Team einen Weg, Sie zu erreichen.", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:48.973Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>1698322129, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.959Z", "id"=>44, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_updated", "chatwoot"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"text", "content"=>"Geben Sie dem Team einen Weg, Sie zu erreichen.", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:48.973Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>1698322129, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.959Z", "id"=>44, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_updated"}}
Completed 200 OK in 0ms (Views: 0.1ms | Allocations: 108)

Started POST "/chatwoot/webhook" for 3.70.207.159 at 2023-10-26 12:08:49 +0000
Processing by ChatwootController#webhook as JSON
Parameters: {"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"input_email", "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:49.248Z", "private"=>false, "status"=>"read", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>1698322129, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.973Z", "id"=>45, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_updated", "chatwoot"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"input_email", "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:49.248Z", "private"=>false, "status"=>"read", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>1698322129, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.973Z", "id"=>45, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_updated"}}
Completed 200 OK in 0ms (Views: 0.1ms | Allocations: 108)

Botpress response
Status code: 404
Body: 404 page not found

Completed 500 Internal Server Error in 560ms (Allocations: 6785)

NoMethodError (undefined method `each' for nil:NilClass):

app/use_cases/chatwoot/receive_event.rb:34:in process_event' app/use_cases/chatwoot/receive_event.rb:7:in call!'
app/controllers/chatwoot_controller.rb:3:in `webhook'
Started POST "/chatwoot/webhook" for 3.70.207.159 at 2023-10-26 12:08:58 +0000
Processing by ChatwootController#webhook as JSON
Parameters: {"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{"submitted_email"=>"[email protected]"}, "content_type"=>"input_email", "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:58.586Z", "private"=>false, "status"=>"read", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{"submitted_email"=>"[email protected]"}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>1698322129, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.973Z", "id"=>45, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_updated", "chatwoot"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{"submitted_email"=>"[email protected]"}, "content_type"=>"input_email", "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>45, "content"=>"Lassen Sie sich per E-Mail benachrichtigen", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>3, "created_at"=>1698322128, "updated_at"=>"2023-10-26T12:08:58.586Z", "private"=>false, "status"=>"read", "source_id"=>nil, "content_type"=>"input_email", "content_attributes"=>{"submitted_email"=>"[email protected]"}, "sender_type"=>nil, "sender_id"=>nil, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"Lassen Sie sich per E-Mail benachrichtigen", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>1, "last_activity_at"=>1698322128, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>nil, "id"=>20, "identifier"=>nil, "name"=>"falling-cherry-871", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>1, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>1698322129, "timestamp"=>1698322128, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:08:48.973Z", "id"=>45, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"template", "private"=>false, "sender"=>nil, "source_id"=>nil, "event"=>"message_updated"}}
Completed 200 OK in 0ms (Views: 0.1ms | Allocations: 108)

Started POST "/chatwoot/webhook" for 18.196.101.121 at 2023-10-26 12:09:05 +0000
Processing by ChatwootController#webhook as JSON
Parameters: {"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"text", "content"=>"This is a test", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>46, "content"=>"This is a test", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>0, "created_at"=>1698322144, "updated_at"=>"2023-10-26T12:09:04.745Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"text", "content_attributes"=>{}, "sender_type"=>"Contact", "sender_id"=>20, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"This is a test", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>2, "last_activity_at"=>1698322144, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}, "sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>"[email protected]", "id"=>20, "identifier"=>nil, "name"=>"test", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>"[email protected]", "id"=>20, "identifier"=>nil, "name"=>"test", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>2, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>1698322129, "timestamp"=>1698322144, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:09:04.745Z", "id"=>46, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"incoming", "private"=>false, "sender"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "avatar"=>"", "custom_attributes"=>{}, "email"=>"[email protected]", "id"=>20, "identifier"=>nil, "name"=>"test", "phone_number"=>nil, "thumbnail"=>""}, "source_id"=>nil, "event"=>"message_created", "chatwoot"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "content_attributes"=>{}, "content_type"=>"text", "content"=>"This is a test", "conversation"=>{"additional_attributes"=>{"browser"=>{"device_name"=>"Unknown", "browser_name"=>"Chrome", "platform_name"=>"Generic Linux", "browser_version"=>"118.0.0.0", "platform_version"=>"0"}, "referer"=>nil, "initiated_at"=>{"timestamp"=>"Thu Oct 26 2023 14:08:48 GMT+0200 (Central European Summer Time)"}, "browser_language"=>"en"}, "can_reply"=>true, "channel"=>"Channel::WebWidget", "contact_inbox"=>{"id"=>20, "contact_id"=>20, "inbox_id"=>2, "source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6", "created_at"=>"2023-10-26T12:08:34.262Z", "updated_at"=>"2023-10-26T12:08:34.262Z", "hmac_verified"=>false, "pubsub_token"=>"[FILTERED]"}, "id"=>7, "inbox_id"=>2, "messages"=>[{"id"=>46, "content"=>"This is a test", "account_id"=>1, "inbox_id"=>2, "conversation_id"=>7, "message_type"=>0, "created_at"=>1698322144, "updated_at"=>"2023-10-26T12:09:04.745Z", "private"=>false, "status"=>"sent", "source_id"=>nil, "content_type"=>"text", "content_attributes"=>{}, "sender_type"=>"Contact", "sender_id"=>20, "external_source_ids"=>{}, "additional_attributes"=>{}, "processed_message_content"=>"This is a test", "sentiment"=>{}, "conversation"=>{"assignee_id"=>nil, "unread_count"=>2, "last_activity_at"=>1698322144, "contact_inbox"=>{"source_id"=>"89f186e8-3201-4066-9986-aa84c87865f6"}}, "sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>"[email protected]", "id"=>20, "identifier"=>nil, "name"=>"test", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}}], "labels"=>[], "meta"=>{"sender"=>{"additional_attributes"=>{}, "custom_attributes"=>{}, "email"=>"[email protected]", "id"=>20, "identifier"=>nil, "name"=>"test", "phone_number"=>nil, "thumbnail"=>"", "type"=>"contact"}, "assignee"=>nil, "team"=>nil, "hmac_verified"=>false}, "status"=>"pending", "custom_attributes"=>{}, "snoozed_until"=>nil, "unread_count"=>2, "first_reply_created_at"=>nil, "priority"=>nil, "waiting_since"=>1698322128, "agent_last_seen_at"=>0, "contact_last_seen_at"=>1698322129, "timestamp"=>1698322144, "created_at"=>1698322128}, "created_at"=>"2023-10-26T12:09:04.745Z", "id"=>46, "inbox"=>{"id"=>2, "name"=>"TESTING"}, "message_type"=>"incoming", "private"=>false, "sender"=>{"account"=>{"id"=>1, "name"=>"Kitapay"}, "additional_attributes"=>{}, "avatar"=>"", "custom_attributes"=>{}, "email"=>"[email protected]", "id"=>20, "identifier"=>nil, "name"=>"test", "phone_number"=>nil, "thumbnail"=>""}, "source_id"=>nil, "event"=>"message_created"}}
Botpress response
Status code: 404
Body: 404 page not found

Completed 500 Internal Server Error in 560ms (Allocations: 1104)

NoMethodError (undefined method `each' for nil:NilClass):

app/use_cases/chatwoot/receive_event.rb:34:in process_event' app/use_cases/chatwoot/receive_event.rb:7:in call!'
app/controllers/chatwoot_controller.rb:3:in webhook'

Do you know what is the problem? Maybe it is the missing auth token bearer for the cloud botpress? Where can I add it?

Your help is very much appreciated!

Have a nice day.

Handoff

Hello friend, would it be possible to explain better how to handoff to an agent in chatwoot

install with current chatwoot

Hello ,
Thank you for this bridge

now i have already installed and running chatwoot ( local VM ), and i need to install botpress and use your bridge

but i have some questions

1- can i use botpress with WhatsApp channel ?

2- can i install botpress on another VM , after that use your bridge ? or you prefer to install on the same chatwoot VM ?

3- what is the BOTPRESS_ENDPOINT and CHATWOOT_ENDPOINT ?

Thank You

Does this works?

So is not clear where to install the bot, I run chatwoot in caprover, and so guess should be in caprover. Is this available as a one click app?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.