On Email Intent Indentification agent -Agent Output is not available in the flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Building a flow to analyse the inbound email for intent and then decide the next steps to create incident or any other record (action).
1) Based on the docs, new email intents were created.
2) Activated the Intent Identification Agent
3) Tested the Intent Identification Agent on a few emails and the final output ( manual agent test) shows correct output as 'Output : **MATCHED INTENTS** : { "intent": "<description_start>The user is not reporting an issue which is affecting their work but a requesting data change , a new hardware or software from the catalog. This will not be considered new incident but a service request.<description_end>", "matched_intent_sys_id": "f263409e1b4a4b10efc9a609b04bcb5d" } ...'
4) Created a new subflow to plug this into the process. Defined inputs ( as inbound email sys_id), expected output variable as 'intent' ( type: Dynamic Content) and also the subflow output ( as Agent Output). While testing, the issue is that the Agent Output is not getting set based on the execution.
(check the screenshot below)
The Agent Status does populate as 'Success'. But the 'Agent Output' is not being set and I'd like to understand why. It seems this API sets the value but I cannot find any references to this in developer documentation. sn_fd_genai.FlowDesignerGenAIUtil().getTransformedAgentOutput(fd_data._1__use_an_ai_agent_step.execution_plan_record, fd_data.action_inputs.wait_for_completion).output;
Any pointers will be appreciated.
The Execution Plan (below) also shows successful execution for all expected steps, and the requirement is to extract the full JSON Output from here (and parse) for next steps.