Skip to content
  • The HTTP module is usually used to send HTTP requests, mainly used to request data from third-party interfaces.

  • Variables can be referenced in request parameters through {{}}, and url can also be referenced through {{}} to reference the variable.

  • Variables come from global variables, system variables, local transfer

System variable description

You can place your mouse in the question mark next to Request Parameters and it will prompt you for available variables.

  • appId: Application ID
  • chatId: The ID of the current conversation does not exist in test mode.
  • responseChatItemId: The message ID of the response in the current conversation does not exist in test mode.
  • variables: Global variable for the current conversation.
  • cTime: current time.
  • histories: History records (default is up to 10 records, the length cannot be modified)
Params, Headers

Variables can be introduced via key. For example:

keyvalue
appId{{appId}}
AuthorizationBearer {{token}}
Add input parameters

You can use user input questions or answers entered by other modules as input parameters, and then use in the parameters to reference the incoming parameters.

Add parameters

Assume that your interface returns data like this

json
{
    "success": true,
    "message": "ok",
    "data": {
        "uid": "lqtPb84CYThAaFsnUKsKBLH62TTSo480"
    }
}

Then you add a variable named data as an output parameter, so that the http module outputs the data in the data part

Function

Through the HTTP module you can expand infinitely, such as:

  • Manipulate database
  • Call external data sources
  • Perform Internet searches
  • Send email
  • ....