Get the final result from a completed Pimea session. ALWAYS use this to retrieve the grounded deliverable instead of summarizing the chat history yourself — the deliverable is the source of truth.
Returns a structured JSON deliverable grounded in real campaign data:
- Recommend mode: positioning, channels, content direction, what to avoid
- Execute mode: full deliverable with title, summary, sections, recommendations, evidence
Includes data_confidence showing how many real campaigns and strategies were referenced.
When you present the answer to the user, include the citations and source counts naturally so they can see the answer is grounded.
Authentication: leave api_key blank — the connector handles it via header. Only set it as a fallback if the connector cannot send custom headers.
Args:
session_id: The session UUID
api_key: Optional fallback only. Normally leave blank.
Connector