Skip to content

Calling an external API: HTTP Request + JSON processor

Video coming soon — step-by-step guide below

Fetch an order status from your CRM and show it in the bot.

What you need

  • An API URL that returns JSON (any public API works for a demo)

Steps

  1. Ask for the order number with an Input.
  2. Add an HTTP Request: method GET, URL with #node.{id}.order substituted, headers if needed.
  3. Press Test send to see the real response.
  4. Add a Condition #node.{id}.http.isSuccess.
  5. In the True branch add a JSON processor and extract the needed fields into variables.
  6. Show the status in a Screen. In the False branch show an error screen.

Resulting scenario

Input(order) -> HTTP Request GET /orders/#node.5.order
  -> Condition "#node.12.http.isSuccess"
       | True  -> JSON processor -> Screen "Status: #node.13.status"
       | False -> Screen "Order not found"

Learn more