how to reliably read the output of AI Agent script tool via script in VA topic

Dhirendra Singh
Mega Sage

how to reliably read the output of AI Agent script tool via script in VA topic

Context -
We use a custom fallback VA topic with AI Assistant
this va topic calls a master AI Agent
AI Agent processes input and responds using a script tool example HR intent script tool returns "category":"HR"
In main master VA topic need to read this to process and take steps further
So far tried execution tools, messages but both are unreliable as blob may change. old method of live agent context variable also tried no luck

1 ACCEPTED SOLUTION

Dhirendra Singh
Mega Sage

Anyone struggling with this where you need deterministic behaviour
Va topic - AI Agent - Tool response in autonomous mode without showing output

sn_aia_tools_execution gliderecord with vaInputs.execution_plan_id
use sync execution mode if its all part of one VA topic or fetch tool based response orderby desc setlimit 1.

View solution in original post

1 REPLY 1

Dhirendra Singh
Mega Sage

Anyone struggling with this where you need deterministic behaviour
Va topic - AI Agent - Tool response in autonomous mode without showing output

sn_aia_tools_execution gliderecord with vaInputs.execution_plan_id
use sync execution mode if its all part of one VA topic or fetch tool based response orderby desc setlimit 1.