client.Typebots to integrate TypeBot flows with a VZaps instance.
Common fields on every call:
| Field | Type | Required | Description |
|---|---|---|---|
InstanceID | string | Yes | Instance ID. |
InstanceToken | string | Yes | Instance token. |
Typebots.List(ctx, instanceID, options)
Lists TypeBots configured on the instance.
Typebots.Create(ctx, req)
Creates a TypeBot configuration.
typebot_id for later updates.
Main payload fields:
| Field (JSON) | Go field | Required | Description |
|---|---|---|---|
enabled | Enabled | Yes | Enables or disables trigger evaluation. |
description | Description | Yes | Display name for the configuration. |
typebot_url | TypebotURL | Yes | TypeBot base URL. |
public_id | PublicID | Yes | Public flow identifier. |
trigger_type | TriggerType | Yes | all, keyword, contains, starts_with, regex, advanced, or none. |
trigger_value | TriggerValue | Conditional | Trigger text or regex. |
trigger_operator | TriggerOperator | Conditional | Used when TriggerType is advanced. |
priority | Priority | Yes | Evaluation order. Higher value first. |
expire_in_minutes | ExpireInMinutes | Yes | Session expiry after inactivity. 0 means no expiry. |
Typebots.Update(ctx, req)
Updates an existing TypeBot. Pass TypebotID from create or list.
{ status: "ok" }.
Typebots.Delete(ctx, req)
Removes the configuration and its sessions.
{ status: "ok" } or equivalent message).
Typebots.StartSession(ctx, req)
Starts a session manually with a contact.
By PublicID:
opened status).
By TypebotID:
| Field (JSON) | Go field | Required | Description |
|---|---|---|---|
public_id | PublicID | Conditional | Public flow identifier. Use PublicID or TypebotID. |
typebot_id | TypebotID | Conditional | Internal TypeBot ID. |
phone | Phone | Yes | Contact phone. |
message | Message | Yes | Initial message sent to the flow. |
push_name | PushName | No | Contact display name. |
Typebots.ListSessions(ctx, instanceID, options)
Lists active and closed sessions.
opened, paused, closed) per contact/flow.
Typebots.PauseSession(ctx, req)
Pauses an open session. Pass the session UUID in Session.
paused status.

