Skip to content
Get started

Submit Input Response

client.agent.automateInput(stringrequestID, AgentAutomateInputParams { cancelled, fields } body, RequestOptionsoptions?): AgentAutomateInputResponse { status }
POST/automate/{requestID}/input

Submit a response to an interactive form data request from an in-progress automation task. When the AI agent encounters a form requiring user data, it emits an interactive:form_data:request or interactive:form_data:error SSE event containing a requestId. Use this endpoint to provide the requested data or cancel the request.

Lifecycle:

  • Input requests expire after 2 minutes by default
  • Expired or already-answered requests return 410 Gone
  • Successful submissions return 202 Accepted (fire-and-forget from caller’s perspective)
ParametersExpand Collapse
requestID: string
body: AgentAutomateInputParams { cancelled, fields }
cancelled?: boolean

Set to true to cancel/decline the request

fields?: Array<Field>

Field values as array of {ref, value} pairs (required when not cancelled)

ref?: string
value?: string
ReturnsExpand Collapse
AgentAutomateInputResponse { status }
status?: string

Submit Input Response

import Tabstack from '@tabstack/sdk';

const client = new Tabstack({
  apiKey: process.env['TABSTACK_API_KEY'], // This is the default and can be omitted
});

const response = await client.agent.automateInput('requestID');

console.log(response.status);
{
  "status": "accepted"
}
Returns Examples
{
  "status": "accepted"
}