Add a Flow connector
Send every analysed record to a Digital Agent flow – for example to classify e-mails or call a back-office system – and bring the flow's variables back to Insights.
A Flow connector is a parameter that sends each record of an Insights project to a Digital Agent flow. The flow can work with the record – classify it, look up data in your systems, decide what should happen next – and its variables come back to Insights as results you can filter and show in dashboards.
Before you start, finish the Analysis project tutorial: you need an Insights project with data.
1. Prepare the flow
Build the Digital Agent project that does the work (the target project) and train it – see Build your first agent.
Recommended: create a second, small Digital Agent project (the proxy project) with only a Transfer node that leads to the target project. Connect the Start node to the Transfer node and train the proxy project.
2. Create the Flow connector
In your Insights project, open Design › Parameters.
Click Create and choose Flow connector.
In Connect to project, choose the proxy project (or the target project), and in Select trained version the version to call. Only trained versions are offered.
Enter the Name of the connector.
Optional settings in Extras:
Output variables – the flow variables that should come back to Insights. Enter each name exactly as in the flow and confirm it with Enter. Leave it empty to get all of them.
Previous parameter results to flow – also send the results of earlier prompts to the flow, each under its
<prompt>_<parameter>name.Send unprocessed transcript/text to flow – also send the raw transcript or text.
Should process email attachments – let the flow work with the attachments of the e-mail. Offered only in Text projects.
Click Save.
Secret variables of the flow are never returned to Insights. All fields are described in Parameters › Flow connector.
3. Add it to a prompt
Open Design › Prompts and create a prompt (or open an existing one).
Select the Flow connector in Parameters.
If the flow needs results of other prompts, make sure those prompts run earlier and switch on Previous parameter results to flow in the connector.
Click Create or Save.
New records now go through the flow. To run the flow over records you already have, use Process › Rerun.
4. Use the results
In the flow, the results of earlier prompts are available under their
<prompt>_<parameter>names – use them like any other variable, for example in a Condition intent of an Answer node, in a Function node or in the Instructions of an AI node.In Insights, the flow's output is stored with the results of the record and can be shown in dashboards:
<prompt>_<connector>_<ai_node_response>– the answer of an AI node, named after the variable you save the response to in that AI node.<prompt>_<connector>_<variable>– each other returned variable, for examplerouting_triage_department.Variables with an empty value,
0orfalseare not stored.
In Text projects, the flow can also act on the e-mail itself – for example reply to it, forward it or move it to another folder. These actions run only for newly arriving e-mails, never on a rerun. See E-mail bots.
Last updated
Was this helpful?