Cortex icon

Cortex

Interact with Cortex API

Agent → Get Prompt

AI-generated

Summary

Retrieve the compiled prompt associated with a specific AI agent using its UUID.

Inputs

  • Agent ID (required) — The UUID of the agent for which to get the compiled prompt.

Output shape

a single JSON object containing the compiled prompt data for the specified agent

The output is a JSON object returned from a GET request to the API endpoint /integrations/agents/{agentId}/prompt. If the request fails, an error is thrown or returned depending on error handling settings.

Examples

Example 1: Get the compiled prompt of an AI agent with UUID '1234-5678-9012'.

Set resource to 'Agent', operation to 'Get Prompt', and provide '1234-5678-9012' as 'Agent ID'.

Links

Discussion