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

...

Code Block
{
  "name": "function_name",
  "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 conditions. In this line, specify the subscription action by indicating your block ID from the required sales funnel. Replace 67923e109cf6cf5c3ca547c3, shown in the example above, with your block ID.

...

  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 (function_name)"

    ksnip_20250226-145207-20250226-125207.png
  4. In the Functions section of your assistant, enter the function execution command (function_name).

    ksnip_20250226-145207-20250226-125207.png
  5. Insert the JSON code of the function and specify tunnel_block_id in the description of your function.

    ksnip_20250226-145431-20250226-125431.png

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

...