PraisonAI icon

PraisonAI

Run AI agents with PraisonAI

Run Agent

AI-generated

Summary

Execute a PraisonAI agent with a query and return the agent's JSON response.

Inputs

  • agent (required) — The agent to run
  • query (required) — The query to send to the agent
  • options — Additional request options

Output shape

JSON response from the PraisonAI server, paired with the input item index. When continueOnFail is enabled, errors are returned as {error: message}.

Each input item is processed independently. The request is a POST to ${apiUrl}/agents/${agent} with body {query: query} and optional timeout from options.

Examples

Example 1: Run an agent with a natural language query

Select an agent from the loaded list, enter a query, and optionally set a timeout in milliseconds.

Discussion