# Rasa with rocket chat

**URL:** <https://forums.rocket.chat/t/rasa-with-rocket-chat/16352>\
**Category:** Development\
**Created:** [March 28, 2023, 12:09am UTC](https://forums.rocket.chat/t/rasa-with-rocket-chat/16352 "2023-03-28T00:09:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hopa](https://avatars.discourse-cdn.com/v4/letter/h/9de053/32.png) [@hopa](https://forums.rocket.chat/u/hopa)\
**Post date:** [March 28, 2023, 12:09am UTC](https://forums.rocket.chat/t/rasa-with-rocket-chat/16352/1 "2023-03-28T00:09:08Z")

</div>

### Description

I am trying to do Integration between rocket chat and Rasa chatbot, I think Rasa is not receiving any messages from live chat.

when I open `http://localhost:3000/livechat` and start a session, the bot types  
`Service Unavailable Message`

what may cause the error!

* * *

**Update**  
the message `Service Unavailable Message` is sent when no response is received.

* * *

**Update**  
I figured it out, there is an error in the Rocket chat rasa app  
it sends data that rasa couldn’t parse.  
data that was sent by rasa app in rocket market \>\> single quotes

```auto
[{'recipient_id': 'default', 'text': 'Hey! How are you?'}]

```

using postman to check, this body was parsed successfully \>\> double quotes

```auto
{
    "sender": "WMXQiQaQkxeTNLa2G", 
    "message": "hi"
}

```

but this was **failed** \>\> single quotes

```auto
{
    'sender': 'WMXQiQaQkxeTNLa2G', 
    'message': 'hi'
}

```

I make a turnaround with python flask to receive it and send it back with double quotes, but this is not optimal at all

* * *

**Update**

I am unable to send an Image back to the rasa app.
