Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

UA

image-20240611-123449.pngImage Modified

US

image-20240611-123805.pngImage Modified

RU

image-20240611-131051.pngImage Modified

...

Table of Contents
stylenone

...

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!

  • function_name change to your function's name. This name will appear in the list of functions, for example: add_to_crm, add_tag, etc.description – describe the action and subscription conditionsmust be only START_TUNNEL!

  • description – The only edit field in the code above for correct operation. In it, you describe the actions and conditions of subscribing to a block in the sales funnel. In this line, you need to specify the subscription action by indicating specifying your block ID from the required desired sales funnel. Replace 67923e109cf6cf5c3ca547c3 , shown specified in the example above , with your block ID.

4. Adding a Function to AI Assistant

...

  1. Go to the Assistants section on the OpenAI platform and create or select an existing AI Assistant.

    ksnip_20250226-144939.png
  2. Navigate to the System instructions section of your AI Assistant.

    ksnip_20250226-145046-20250226-125046.png
  3. 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)"

    ksnip_20250226-145207-20250226-125207.pngImage Removedksnip_20250228-162250.pngImage Added

  4. In the Functions section of your assistant, enter the function execution command (functionSTART_nameTUNNEL).

    ksnip_20250226-145207-20250226-125207.pngImage Removedksnip_20250228-160846.pngImage Added

  5. Insert the JSON code of the function and specify tunnel_block_id in the description of your function.

    ksnip_20250226-145431-20250226-125431.pngImage Removedksnip_20250228-161111.pngImage Added

Now, the AI Assistant will analyze client dialogues and, based on their messages, execute the appropriate actions on the platform.

...