CreateConnector

The CreateConnector action creates a new connector for a specified integration. Connectors are the communication channels through which the agent interacts with external services.

CreateConnector(
    integrationIdn: str,
    connectorIdn: str,
    title: str,
    settings: dict = {},
    start: bool = True
)

Parameters

ParameterTypeDefaultDescription
integrationIdnstrThe integration identifier (e.g., "program_timer", "api", "twilio_messenger").
connectorIdnstrThe unique identifier for the connector being created.
titlestrThe display title for the connector.
settingsdict[str, str](Optional but if empty must be settings={}) A dictionary of settings for the connector (e.g., {"channel": "text"}).
startboolTrue(Optional) Whether to start the connector immediately after creation. Defaults to True.

Returns object with properties

ParameterTypeDescription
integrationIdnstrThe integration identifier of the connector.
connectorIdnstrThe unique identifier of the connector.
titlestrThe display title of the connector.
statusLiteral["running", "stopped"] | NoneThe current status of the connector, or None.
settingsdict[str, str]A dictionary of settings for the connector.

Example

{{ CreateConnector(
    integrationIdn="program_timer",
    connectorIdn="my_timer",
    title="My Timer",
    settings={},
    start=True
) }}

The above code snippet creates a new programmable timer connector with the identifier "my_timer" and starts it immediately.