Original Agent
AI-generatedSummary
Process incoming message with Original Agent and return the AI response.
Inputs
- botId (required) — The original.land Bot ID to interface with
- apiKey (required) — The original.land API key
- message (required) — Message to send to the original.land agent
- botEndpoint (required) — The original.land API endpoint
- streaming — Whether to use streaming response
- overrideSystemPrompt — Optional system prompt to override the default one
- chatHistory — JSON string containing the chat history. If provided, will be used instead of creating a new chat from the message.
- enableDocuments — Whether to include document uploads in the request
- structuredOutput — JSON Schema that defines the structure and validation rules for the AI response.
Output shape
array of items, each containing an originalAgent object with the agent's response
Polling is used for document processing and can timeout; error handling may return error items when continueOnFail is disabled.
Examples
Example 1: Send a single message to a bot and receive parsed JSON response.
botId, apiKey, message set; streaming false; no override or chat history.
Example 2: Stream the response and enforce a JSON schema on the output.
streaming true; structuredOutput provided; botId and apiKey set.
Example 3: Upload a document with enableDocuments enabled.
enableDocuments true; file attached; botId, apiKey, message set.