COMMUNITY
Setting up custom variables from JSON Api response
almost 6 years ago by Alex Dutescu
Hello,
In my scenario i would like to send the bot an greeting message, and the bot to reply with my name: Hello $username, how can i help?
Is it possible to pass from backend to snatchbot a customVariable that will hold my name trough JSON Api?
Simple scenario:
- User: Hello Snatchbot, i need help.
(in this step i need to be able somehow to make a POST request to my backend, and retrieve the JSON response with custom variable $username=Alex) - Bot: Hello Alex, how can i help?
(in this step customVariable $username has value Alex)