You can’t use the messages variable in AnalysisPlan prompts, so instead extract tool call info API, SMS, callTransfer via structured data prompts and schemas, use post-call webhooks for detailed results, or manually inject variables before analysis..