Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Yes, it has to be just json_encoded string.
So your response could look like
{
"msg":"your bot response"
"meta_msg": "{\"content\":{\"quick_replies\":[{\"type\":\"button\"\,"content\":{\"name\":\"Rest API Button\",\"payload":\"rest_api_button\"}}]}}"
}
Offline
Hello good afternoon. It's almost working. But the quick-response buttons are still missing. Let me show you my code and settings.
Any idea?
Offline
I don't know because here all worked
Offline
One thing. Try to pass as array not json string.
Because this one is returned as normal array not json string.
'meta_msg' => json_decode('{"content":{"quick_replies":[{"type":"button","content":{"name":"Rest API Button","payload":"rest_api_button"}}]}}',true),
Offline
Ok.
Last edited by edersonbologna (2020-05-08 17:34:35)
Offline
As stated here
echo json_encode(array(
'meta_msg' => json_decode('{"content":{"quick_replies":[{"type":"button","content":{"name":"Rest API Button","payload":"rest_api_button"}}]}}',true)
));
Offline
Just read documentation........
Offline
Just read documentation........
Hello. I read the documentation, but I got it wrong. With your help I saw what I was doing wrong, now it's working. Thank you very much, your help has been invaluable.
Offline
Now you can create a pull request with updated documentation so others will understand easier
Offline