Rocket.chat Rasa integration : rocket.chat giving multiple times same response

Description

I have integrated RASA with rocket chat with docker-compose. I am able to established the connection via outgoing webhook integration with url as http://rasa:5005/webhooks/rocketchat/webhook

but I am getting multiple response of same message from rasa in chat

Server Setup Information

Rocket.Chat Version: 4.5.2
NodeJS Version: 14.18.3 - x64
MongoDB Version: 5.0.7
MongoDB Engine: wiredTiger
Platform: linux
Process Port: 3000
Site URL: http://localhost:3000
ReplicaSet OpLog: Enabled

Hi!

I have bookmarked this and other related rasa message to Friday to give it a try. if possible, please state all the steps or docs you have followed to integrate it. Thanks!

Below are my outgoing webhook url set in rocket chat


this is my docker compose file
version: “2”

services:

rocketchat:

image: registry.rocket.chat/rocketchat/rocket.chat:latest

restart: unless-stopped

volumes:

  - ./uploads:/app/uploads

environment:

  - PORT=3000

  - ROOT_URL=http://localhost:3000

  - MONGO_URL=mongodb://mongo:27017/rocketchat

  - MONGO_OPLOG_URL=mongodb://mongo:27017/local

  - REG_TOKEN=${REG_TOKEN}

#       - MAIL_URL=smtp://smtp.email

#       - HTTP_PROXY=http://proxy.domain.com

#       - HTTPS_PROXY=http://proxy.domain.com

depends_on:

  - mongo

ports:

  - 3000:3000

labels:

  - "traefik.backend=rocketchat"

  - "traefik.frontend.rule=Host: your.domain.tld"

mongo:

image: mongo:latest

restart: unless-stopped

volumes:

  - ./data/db:/data/db

  #- ./data/dump:/dump

# command: mongod --smallfiles --oplogSize 128 --replSet rs0 --storageEngine=mmapv1

#command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger

command: bash -c

  "while [ ! -f /data/db/WiredTiger ]; do

  echo \"wiredTiger migration hasn't started yet. Waiting 30 secs...\";

  sleep 30;

  done;

  docker-entrypoint.sh mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger;"

labels:

  - "traefik.enable=false"

this container’s job is just run the command to initialize the replica set.

it will run the command and remove himself (it will not stay running)

mongo-init-replica:

image: mongo:latest

command: >

  bash -c

    "for (( ; ; )); do

      mongo mongo/rocketchat --eval \"

        rs.initiate({

          _id: 'rs0',

          members: [ { _id: 0, host: 'localhost:27017' } ]})\" &&

      s=$$? && break || s=$$?;

      echo \"Could not reach MongoDB. Waiting 5 secs ...\";

      sleep 5;

    done; (exit $$s)"

depends_on:

  - mongo

#RASA

rasa:

image: rasa/rasa:latest

ports:

  - 5005:5005

volumes:

  - ./:/app

command:

  - run

action-server:

image: rasa/rasa-sdk:latest

volumes:

  - ./actions:/app/actions

ports:

  - 5055:5055

Hi!

I am sorry, I got stuck with botpress first and was not able to cover rasa yet. I’ll advance on this this week. Thanks for sharing the docker bits.

Took me hours to find out what was the problem, I put it here for the record.

Answer here: