Functions

Configure your agent to perform special functions on your system like sending and getting data in a chain process. You can chain multiple functions to fully automate a process or flow.

Functions are only available when you select the text output. Functions can be long running so function responses are sent to your configured api web hook url

To configure a function, you need to define the function name, description, api and parameters.

The parameters are sent to the function apis in a POST request.

The function API field requires your system api . See below the expected response of your api:

API response format

NameTypeDescription

type

string

Setting this allows the AI to process your response and determine the next step in your process.

message

string

Response message from your api

Response

{
  "type": "instruct",
  "message": "User profile registered, is the user eligible for credit?"
}

Next, explore how to setup your function parameters for your software.

Last updated