COMMUNITY
Missing Card buttons in JSON response using REST
I am using python to connect to my chatbot on snatchbot. I am able to establish the communication. Everything seemed to work fine, but I am unable to get card buttons in json. The buttons list is always empty, though I have buttons on on my card. I have tried mutilple times and in multiple ways but the buttons are always missing in the post response. kindly assist.
The below is the Json is received from the sample Cinema bot through REST. Notice that the buttons field in card is an empty list. The original cards have buttons.
{
"cards": [
{
"type": "gallery",
"gallery": [
{
"buttons": [],
"url": "https://www.rottentomatoes.com/m/due_date",
"image": "https://dvgpba5hywmpo.cloudfront.net/media/image/1498671043.bTsxMTE2NjcyMjtqOzE3NDU0OzEyMDA7ODAwOzEyMDA",
"subtitle": "Genre: Comedy",
"heading": "Due Date - Ticket $2.5"
},
{
"buttons": [],
"url": "https://www.rottentomatoes.com/m/the_hobbit_the_battle_of_the_five_armies",
"image": "https://dvgpba5hywmpo.cloudfront.net/media/image/1498671102.bTsxMTE3OTcwMztqOzE3NDU0OzEyMDA7NTA5Ozc1NQ",
"subtitle": "Genre: Action & Adventure, Science Fiction & Fantasy",
"heading": "The Hobbit: The Battle of the Five Armies - Ticket $2.5"
}
]
}
]
"status": true,
"messages": [
"This is the list of movies currently on screen in our Cinema.\ud83c\udfa5\ud83c\udf9e\ud83c\udfac"
],
"suggested": null
}
Posted by Manikumar Perla about 6 years ago
My Viber channel is inactive
I've successfully created a Viber bot and connected it as a channel but it didn't working. There are no message icon to open the Viber bot dialog.
Posted by Eugene about 5 years ago
How to initialize a custom variable from an API call
Here is the workflow:
1. I want to call an API endpoint
2. the end point will return the value of a custom variable
3. I want to grab that value
4. and use it for the rest of the chat
Posted by John Marountas about 5 years ago
Can the webchat page be smaller when it opens?
i.e. is it (the webpage not the button) customisable for size as well as colour?
Posted by Andy Mcdowell over 6 years ago
Is there any affiliate program?
Hi,
I want to know is there any affiliate program for snatchbot users?
It would be good if snatchbot could have a certified badge for bot developers like me
just like manychat have.
Thanks,
Prakhar
Posted by Prakhar Monga almost 5 years ago
I am unable to embed links on telegram
despite using the format [url=LINK_URL]LABEL_URL[/url], the entire link still appears on telegram but it appears fine on the test chatbot on SnatchBot itself
Posted by JLHM about 4 years ago
Is there a way to build a Shopping Cart with Snatchbot
Hello,
I would like to know if it is possible to build a Shopping Cart with SnatchBot that can be used to add, update,delete cart items and send that to the User.
Any kind of hint is appreciated.
Posted by Aditya Pradhan over 6 years ago
Stoped working on facebook
This week All my bots stoped working on facebook I am really worried, what is the issue
Posted by marcos paulo pereira perfeito almost 6 years ago
Unable to Set DO NOTHING As Fallback
I am finding it difficult to set "do nothing as fallback
I cant set other interactions but if i click "do nothing", it will just remain blank. it wont appear in the field
what could be wrong?
Posted by Jide over 5 years ago
Json Webhook example
I need to get the email address from the chat and process it via a webhook written in PHP. Please provide me an example on how to achieve that. I have read the references but I am out of clues.
When I test the API url in postman it shows as below
{
"messages": [
{
"cards": [],
"date": "2018-03-26T15:26:06Z",
"from": "botsApiChannel:",
"id": 3212594,
"message": "Hey there, What's up. Do you need any help today ?"
},
{
"cards": [],
"date": "2018-03-22T17:14:36Z",
"from": "botsApiChannel:",
"id": 3144886,
"message": "Hey there, What's up. Do you need any help today ?"
},
{
"cards": [],
"date": "2018-03-22T15:48:41Z",
"from": "botsApiChannel:",
"id": 3143459,
"message": "Hey there, What's up. Do you need any help today ?"
}
],
"status": true
}
Your support is very valuable for me to resolve the issue. A small example will be much appreciated.
Thank you
Posted by Harsha about 6 years ago