BotPress connector doesnt reply in livechat/omnichannel

Description

Hello,
I have a rocketchat server locally and a BotPress server locally also in docker, and when I install the BotPress Connector application, and configure it, the bot answers correctly but in private chat, it does not respond to Omnichannel nor LiveChat, in the BotPress logs it is seen when a LiveChat chat is closed but not when it is opened, as in the case of the private message.
The Omnichannel configuration is correct, enabled, with its correct departments.
Thanks greetings.

Server Setup Information

  • Version of Rocket.Chat Server: 6.8.0
  • Operating System: Ubuntu Server 20.04
  • Deployment Method: Docker
  • Number of Running Instances: 1(localhost)
  • DB Replicaset Oplog:
  • NodeJS Version: v14.21.3
  • MongoDB Version: 4.4.15
  • Proxy: Reverse proxy for external connections
  • Firewalls involved: 0

Can you show your logs etc so we can look at what errors you are seeing?

When I open a chat from livechat (https://chat.my.domain/livechat) externally nothing is answered and when the chat is closed this appears.


IM02

These BotPress logs show, from what I can understand, that when the chat is closed, the rocket.cat bot sends the chat transcript to the bot and it responds as if someone were speaking to it.
The connection and integration is done correctly from private messages, but what I am able to understand from the logs is that rocketchat does not send information from the omnichannel to the botpress.

RocketChat logs output at the same time as the other log

im03
im04
im05

These are the logs if i write the bot from dm
RocketChat:
im06
im07

BotPress:

im09

Information to clarify:
BotPress is at the IP: 192.168.1.165:3001
RocketChat is at the IP: 192.168.1.165:3000
In rocketchat there is a bot created called bot
And in botpress there is a bot called bot_lab002 with the same ID

BotPress Connector config:

im10

Thanks for all!

IM02

IM 03

IM 04

IM 05

IM 06

IM 07

IM 08

IM09

IM 10

Hi. Just to let you know you aren’t being ignored!

I’ll try and look at this when I get 5 minutes.

So can you tell me which licence you use? CE/Starter etc. They both have some restrictions.

Also I presume this is yours?

You really need to add further details when you create issues.

I suspect that this bot is only designed to chat to local users, but not necessarily with Omnichannel/Livechat, users hence the lack of response.

I will try and get a definitive answer on that.

Hello,
I’m using Starter Licence, but from what I have seen you have access to Omnichannel

Do you know of another bot method to respond to Omnichannel with the Starter version?

I recently started with the forums so I have not been very detailed with the problem

Thanks for all.

OK, thanks for the info.

I am trying to find an answer to this as I don’t know myself.

Please be patient.

Can you also describe how you set up your actual botpress bot please?

Which guide did you follow?

I follow these guides

This is my config in botpress of “bot.config.json”

"rocketchat_userid": "mybotuserid",
  "rocketchat_auth_token": "mybotusertoken",
  "rocketchat_url": "http://192.168.1.165:3000",

The token and the id was generated without 2 Factor Auth
These 2 guides, and I try with these one but dont work in any channel/room
docker-compose.yml para Botpress - LigeroSmart Docs | (and the next 3 post)

These are my docker compose for more information

For rocketChat and MongoDB:

volumes:
  mongodb_data: { driver: local }

services:
  rocketchat:
    image: registry.rocket.chat/rocketchat/rocket.chat:${RELEASE:-latest}
    restart: always
    labels:
      traefik.enable: "true"
      traefik.http.routers.rocketchat.rule: Host(`${DOMAIN}`)
      traefik.http.routers.rocketchat.tls: "true"
      traefik.http.routers.rocketchat.entrypoints: https
      traefik.http.routers.rocketchat.tls.certresolver: le
    environment:
      MONGO_URL: "${MONGO_URL:-\
        mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
        ${MONGODB_DATABASE:-rocketchat}?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
      MONGO_OPLOG_URL: "${MONGO_OPLOG_URL:\
        -mongodb://${MONGODB_ADVERTISED_HOSTNAME:-mongodb}:${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}/\
        local?replicaSet=${MONGODB_REPLICA_SET_NAME:-rs0}}"
      ROOT_URL: ${ROOT_URL:-http://localhost:${HOST_PORT:-3000}}
      PORT: ${PORT:-3000}
      DEPLOY_METHOD: docker
      DEPLOY_PLATFORM: ${DEPLOY_PLATFORM}
      CREATE_TOKENS_FOR_USERS: true
    depends_on:
      - mongodb
    expose:
      - ${PORT:-3000}
    ports:
      - "${BIND_IP:-0.0.0.0}:${HOST_PORT:-3000}:${PORT:-3000}"

  mongodb:
    image: docker.io/bitnami/mongodb:${MONGODB_VERSION:-4.4}
    restart: always
    volumes:
      - mongodb_data:/bitnami/mongodb
    environment:
      MONGODB_REPLICA_SET_MODE: primary
      MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0}
      MONGODB_PORT_NUMBER: ${MONGODB_PORT_NUMBER:-27017}
      MONGODB_INITIAL_PRIMARY_HOST: ${MONGODB_INITIAL_PRIMARY_HOST:-mongodb}
      MONGODB_INITIAL_PRIMARY_PORT_NUMBER: ${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
      MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
      MONGODB_ENABLE_JOURNAL: ${MONGODB_ENABLE_JOURNAL:-true}
      ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD:-yes}

For BotPress:

version: '3.5'

services:
  botpress:
    image: botpress/server:v12_25_0
    volumes:
      - botpress-data:/botpress/data
    expose:
      - 3001
    environment:
      - BP_CONFIG_HTTPSERVER_HOST=0.0.0.0
      - BP_MODULE_NLU_DUCKLINGURL=https://duckling.botpress.io/
      - EXTERNAL_URL=http://192.168.1.165:3001/
    ports:
       - 3001:3000
#    networks:
#      - informatica_default
    healthcheck:
      disable: true

volumes:
  botpress-data:
    driver: local

#networks:
#  informatica_default:
#      name: informatica_default
#      external: true```


And the 2 dockers are in the same network

I have asked if someone with more knowledge than me can take a look at this. lease be patient.

2 Likes

I am not sure - you can look at RasaBot or Diagflow I think?

I am out of touch with where things are at here :frowning: