...
Table of Contents | ||
---|---|---|
|
...
To configure the lead subscription function to a block in the funnel, describe it as follows:
Code Block |
---|
{ "name": "functionSTART_nameTUNNEL", "description": "Subscribe user to a tunnel block 67923e109cf6cf5c3ca547c3", "strict": true, "parameters": { "type": "object", "properties": { "tunnel_block_id": { "type": "string", "description": "Id in description" } }, "required": ["tunnel_block_id"], "additionalProperties": false } } |
Note |
---|
IMPORTANT!
|
4. Adding a Function to AI Assistant
...
Go to the Assistants section on the OpenAI platform and create or select an existing AI Assistant.
Navigate to the System instructions section of your AI Assistant.
Add a condition to the base instruction or a condition file specifying when the assistant should call the function. Example:
"If the client asks about membership, provide information about membership and then activate the function (functionSTART_nameTUNNEL)"
In the Functions section of your assistant, enter the function execution command (functionSTART_nameTUNNEL).
Insert the JSON code of the function and specify tunnel_block_id in the description of your function.
Now, the AI Assistant will analyze client dialogues and, based on their messages, execute the appropriate actions on the platform.
...