AgentStack Docs
AgentStack Docs
AgentStack documentation
Get started
Build your agent
Actions
Analytics
Channels
Help Desk
Help Center
Developers
Embed the widgetControl the widgetListen for widget eventsBrowser integration boundariesClient-side formsREST API authenticationPagination and errorsRate limitsREST API: agent sign-upREST API: agentsREST API: sources and ingestionREST API: actionsREST API: channelsREST API: analytics and activityREST API: topicsREST API: contactsREST API: conversations and notesREST API: inbox and teamsREST API: chatREST API: roles and membersREST API: organizationREST API: API keysREST API: audit logsREST API: billingREST API: custom domainsREST API: domainsREST API: Help CenterREST API: Help PageREST API: Notion connectionREST API: voice callsIdentity verificationWebhooksMCP serverMCP scopesMCP toolsMCP clientsllms.txt
Workspace
    Developers

    Client-side forms

    Register supported widget forms and handle verified webhook delivery.

    Configure a custom_form action with an exact form name and use case. Then register its schema in the host page with window.agentstack.registerFormSchema. The registration takes a map. Each key is a form name. Each value is an asynchronous callback that returns a schema.

    Registration replaces the previous map of forms. Each call must pass the complete registry of forms. Do not add one entry at a time.

    The schema contains fields and optional text for submission, success, and error states. Supported field types are text, email, tel, number, URL, textarea, select, radio, checkbox, and date.

    A field can set required: true to make it required. A number field submits its value as a number. A blank optional number field is left out of the submitted values.

    A field name cannot be empty. A field name cannot contain ., [, or ]. Radio and checkbox fields need options. The options cannot be empty.

    Callback execution has a five-second limit. Forms work in the live embedded site. In Playground and Compare, they show a fixed preview instead.

    The callback receives AI context and decoded JWT claims. Use these only for prefill or display. Do not use them for authorization.

    A successful submission emits form:submitted to the host. It can also send a form.submitted webhook. To trigger trusted backend work, use the verified webhook signal. Also verify delivery independently.

    Browser integration boundaries

    Keep browser input, supported widget forms, and privileged server actions separate.

    REST API authentication

    Authenticate server-side calls to the AgentStack REST API.