Welcome to the SnatchBot Support. You'll find comprehensive guides and documentation to help you start working with SnatchBot as quickly as possible, as well as support if you get stuck. Let's jump right in!
Hi, I'm trying to set an attribute with the value of a custom variable, but it doesn't work. I'm using the following syntax: [setAttribute attr=[showVar=var]] But when I try to display my attribute value, I get: [showVar=var I really have to use attributes because I want to send them to an API (using JSON API interaction). I think there is a bug when the expression [showVar=var] is evaluated. In fact, the ']' just after 'var' looks like it is interpreted as the closing ] corresponding to the '[' just before 'setAttribute'. Is it possible to fix it? Or do you know any working workaround?
Posted by QuentinR 10 months ago
Hi, I am writing this to kindly notify you that there are no code samples as to how to integrate webhooks with Snatchbot. As I am new to development and chat bot scenario it is very hard to get things going. It is much appreciated if simple code examples could be given for Snatchbot. Hope you guys will treat my request generously and urgently. Thank you
Posted by Harsha 10 months ago
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 10 months ago
Hello, In my bots in all the conversations, I see an order, first comes the text part, then the image or the gallery and then finally the quick reply buttons. Is there an option to change this order. For instance, in one of my bot statements, I want some text to appear first and then an image and then after the image I want the remaining text to appear. Is it possible to do so?
Posted by Sakthi 11 months ago
Hi, I'd like to set custom attributes with a view to sending it using a JSON API interaction. I want to set these attributes with extracted data from previous interactions. To do this, I include the following lines in an interaction: [setAttribute attr1=[extractedData interaction=174248 fallback=0]] [setAttribute attr2=[extractedData interaction=174259 fallback=0]] But I can see in the logs of my api that my attributes are: {attr1: '[extractedData interaction=174248 fallback=0', attr2: '[extractedData interaction=174259 fallback=0'} And some extra brackets ']' are printed in the chat. Am I doing anything wrong? Thanks for your help.
Posted by QuentinR 11 months ago
Hi, I'd like to send data to an external API using a JSON API interaction. However I can't find any instruction to pass extracted data from several previous interactions. The only thing I can currently pass is the response to the previous interaction. Is it possible to pass several messages using a JSON API? For example, is it possible to add extra fields into the JSON object that is sent? Or can I include these data into the url? Thanks for your help!
Posted by QuentinR 11 months ago
Hey, here's Fabio. I'm at a beginning level with SnatChBot. I have a very important doubt about my business. In my Facebook Page, I have thousands of interactions for the past 6 months. Is it possible to reach this user and start a chatbot conversation? Many Thanks, Fabio
Posted by Fabio 11 months ago
Hi! I've put the embed code on my website and the bot works. However, I must click on the icon to start the conversation with the bot. How can I set the bot to automatically open the chat and start a conversation immediately after people land on my website? So people wouldn't have to click on the chat button to open it, but it would open automatically itself right away. Have a great day and looking forward to your reply :)
Posted by Toni 11 months ago
Hi, I'd like to use a JSON API interaction in my bot. I want my bot to contact an API running on my PC on port 8080. So I created a JSON API interaction, and filled the field "Your API address" with: <my_IP_address>:8080/<my/URI/path> When I test it, I'm always getting the error message (field "Error Response" in the interaction). According to the logs of my API, I am sure that it received nothing. And when I send the request via Postman, it works. Any idea about what's wrong?
Posted by QuentinR 11 months ago