Back to All

Setting up custom variables from JSON Api response

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:

  1. 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)
  2. Bot: Hello Alex, how can i help?
    (in this step customVariable $username has value Alex)