Frontend Widget Not Receiving Bot Responses - Rasa CALM - Rasa Community Forum

👋 Introducing the Rasa Playground

Frontend Widget Not Receiving Bot Responses

post by Sbuk09 on Feb 28, 2025

Sbuk09

Hi Rasa Community,

I’m working on integrating a frontend widget with my Rasa bot using Socket.IO. While the connection between the frontend and Rasa seems to be working, I’m not receiving any responses from the bot. Here’s a breakdown of my setup and the issue:

What’s Working

  1. Rasa Server: Running with rasa run --enable-api --cors "*".
  2. Actions Server: Running with rasa run actions.
  3. Socket.IO Connection: The frontend widget successfully connects to the Rasa server (confirmed by connect event).
  4. Frontend Widget: Using Rasa chat widget:

What’s Not Working:

Steps I’ve Taken:

  1. Configuration:
    Updated credentials.yml to enable Socket.IO:
    socketio:
        user_message_evt: user_uttered
        bot_message_evt: bot_uttered
        session_persistence: true
    

Verified endpoints.yml points to the correct actions server:

action_endpoint:
    url: "[http://localhost:5055/webhook](http://localhost:5055/webhook)"
  1. Frontend Code:
    Using the Rasa chat widget script:

  2. Testing:
    Tested the bot with rasa shell and confirmed it responds correctly. Checked Rasa logs for errors but found nothing unusual.

What I Need Help With:

Here are my Rasa version and dependencies:

Any guidance or suggestions would be greatly appreciated!

Thanks in advance,


post by stephens on Feb 28, 2025

stephensGreg Stephens
Advanced Rasa Certified Developer

Add --debug and see if confirm that the Rasa sees the message from the user.