Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2022-05-04 21:54:34

diegpied
New member
Registered: 2022-04-06
Posts: 9

RASA integration, show buttons

Hello,

I have an integration with RASA and in RASA I can define answers with buttons (and other graphical elements), how can I make these buttons show to the user?

request:

curl --request POST   --url http://localhost:5005/webhooks/rest/webhook   --header 'content-type: application/json'   --data '{
  "message": "Hello"
}'

response:

[
    {
        "recipient_id": "212231200",
        "text": "How are you?",
        "buttons": [
            {
                "title": "Happy",
                "payload": "/happy"
            },
            {
                "title": "Sad",
                "payload": "/sad"
            }
        ]
    }
]



tks

Last edited by diegpied (2022-05-04 22:07:18)

Offline

#2 2022-05-05 04:42:28

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: RASA integration, show buttons

The only way to support buttons you will have to send response as Trigger body
https://doc.livehelperchat.com/docs/bot/trigger-body

Offline

#3 2022-05-10 14:03:07

diegpied
New member
Registered: 2022-04-06
Posts: 9

Re: RASA integration, show buttons

Hello Remdex,

I'm executing the steps in the manual, but I don't have the expected results, could it be that I'm doing something wrong?

Create a demo web service
This responds the message that is in the documentation

And I configured it like this:

1652133139_captura_de_pantalla_2022-05-09_165114.jpg

1652133165_captura_de_pantalla_2022-05-09_165142.png

But the response to the user is the code of the web service.

I would appreciate the help

Offline

#4 2022-05-10 19:42:41

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: RASA integration, show buttons

Hi,

I'm afraid that it won't work please see. Samples. https://doc.livehelperchat.com/docs/bot … on-intent/

You still would need lhc triggers unless you make so intermedia service.

Offline

#5 2022-05-11 13:37:13

diegpied
New member
Registered: 2022-04-06
Posts: 9

Re: RASA integration, show buttons

Thanks for your answer.

I can make a custom channel in RASA and customize the response, but I need to know how LiveHelperChat needs to receive the message with the structure needed to paint buttons or other graphical components.

Tks

Offline

#6 2022-05-11 13:41:26

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: RASA integration, show buttons

You can just in bot builder interface use "Show code" button and see how response has to look like and afterwards provider same response. In bot trigger response.
Some thing like that smile
1652276473_trigger-body.png

Offline

Board footer