Sapience icon

Sapience

Sapience API integration

Agent → Agent Response

AI-generated

Summary

Send a user query to a Sapience agent via GET request and return the agent's response.

Inputs

  • agentSource — Choose an agent from the list or specify an ID manually
  • agentUid — Agent name or ID from the list (required when agentSource is From List)
  • agentUidManual — Specify the agent ID manually (required when agentSource is By ID)
  • query (required) — The user query to send to the agent
  • conversationUid — Optional conversation ID to continue an existing conversation
  • conversationName — Optional conversation name for a new conversation
  • mode — Response generation mode
  • model — Optional model override
  • temperature — Controls randomness of the response
  • reasoningEffort — How much reasoning effort the model should apply

Output shape

object

The agent's response from the Sapience API (GET /api/v2/agents/agent-response-no-stream), returned as a single array item.

Examples

Example 1: Basic agent query

Use default agent source (From List), provide a query, and run the node to get the agent's text response.

Links

Discussion