What is the Diga Piece?
The Diga piece is the component that connects your workflows with your agent calls. It provides triggers to react to call events and actions to interact with Diga’s telephony system.Triggers
Start a workflow when a call event occurs
Actions
Execute operations within a running workflow
Triggers
Pre-Call
Activates when a call starts, before the agent greets. This is the trigger for pre-call workflows. The agent waits for the flow’s output and uses it to customize the conversation before saying its first word.Configuration
Data received
When this trigger fires, the workflow receives the data of the starting call, which you can use to look up the right record:Call Finished
Activates automatically when a call ends. This is the main trigger for post-call workflows.Data received
When this trigger fires, the workflow receives all call information:
Each message in the
messages array includes:
role— Who spoke (userorassistant)content— The message textcreated_date— When it was sent
Configuration
This trigger requires no additional configuration. You just need to assign the workflow to an agent for it to activate.Function Call
Activates during a call when the agent decides to execute a function. This is the trigger for during-call workflows. The agent uses it as another tool, similar to integrations.Configuration
Parameters
Parameters define what information the agent extracts from the conversation to send to the workflow. For example, for a “Check availability” workflow:
The agent automatically extracts these values from the conversation context and sends them to the workflow. Parameter data types include Text, Number, Boolean, and Array.
Value source
Each parameter has a Value Source that decides where its value comes from:- Extracted by AI (default): the agent extracts the value from the conversation, using the parameter’s description to know what to look for.
- Dynamic Variable: the value is taken directly from a dynamic variable instead of being extracted. When you pick this option, enter the Dynamic Variable Name (without braces, e.g.
customer_id). The agent is not asked for this parameter — Diga fills it in automatically from the call’s variables.
Data received
How the agent waits
The agent waits for the workflow to finish and receives the response, then uses it to continue the conversation. Example: Check appointment availability. The agent asks for the date, executes the workflow, waits for the response, and tells the user the available time slots. Important: The workflow must include the Return Response action as the last step to send data back to the agent. The maximum wait time is 60 seconds.User confirmation
When you enable user confirmation, the agent explains to the user what action it’s about to perform and asks for confirmation before executing the workflow. This is useful for sensitive actions like processing payments or making bookings. Example conversation:Actions
Make Call
Initiates an outbound call from a workflow. This action turns any workflow into a call trigger, allowing you to create automated campaigns or calls reactive to external events. Workflows built around this action are known as call launcher workflows.Configuration
Use cases
Lead follow-up
Lead follow-up
Connect a CRM trigger (new lead created) with the Make Call action to automatically contact new leads.
Appointment reminders
Appointment reminders
Use a schedule trigger to call clients and remind them of their appointments.
Post-form calls
Post-form calls
Connect a webhook with the Make Call action to contact users who complete a web form.
Return Response
Returns data to the agent during a call. This action is required in during-call workflows. It’s the last step of the workflow and contains the information the agent needs to continue the conversation.Configuration
Example
A workflow that checks appointment availability:Return Call Data
Returns data to the agent before the call starts. This action is required as the last step of a pre-call flow — it’s what sends the prompt and variables back to the agent so it can begin the conversation.Don’t confuse this with Return Response. Return Call Data runs at the start of a call (pre-call flows); Return Response runs during a call (during-call flows).
Configuration
Example
A pre-call flow that personalizes the agent based on a CRM lookup:{{customer_name}} and {{plan_tier}} anywhere in its prompt, greeting, or path.
Referencing Data Between Steps
In any action, you can use data from previous steps. Click on an input field to see the available data from all previous steps. Reference examples:- Trigger data: transcription, duration, function parameters
- Previous action data: API response, query result
Next Steps
Create workflows
Put these triggers and actions into practice by creating your first workflow.
Assign to agents
Connect your workflows with agents to activate them.
Templates
Use templates that already include the Diga piece configured.
Integrations
Compare workflows with direct integrations in the agent.

