Documentation Index
Fetch the complete documentation index at: https://docs.diga.io/llms.txt
Use this file to discover all available pages before exploring further.
Accessing Workflows
To start creating workflows, go to the Workflows section from the dashboard sidebar. Here you’ll see all your existing workflows and can create new ones. When you click Create workflow in the top right corner, a modal will open where you can choose between using a predefined template or starting from scratch.
Creating a Workflow from Scratch
Create a new workflow
Click Create workflow in the top right corner. A modal will open with the available templates. To start from scratch, click the Start from scratch button at the bottom of the modal. The visual builder will open with an empty workflow.
Select a trigger
The first step in any workflow is the trigger: the event that starts it. Click the trigger block and select the piece you want to use.For workflows connected to Diga calls, select the Diga piece and choose one of its triggers:
- Call Finished — For post-call workflows
- Function Call — For during-call workflows

Configure the trigger
Each trigger has configuration options. For example, the Function Call trigger lets you define:
- When the agent should execute this function (natural language description)
- What parameters to extract from the conversation
- Whether execution is synchronous or asynchronous
- Whether user confirmation is required
Test the trigger
Before continuing, test the trigger to generate sample data. This data will be used to configure subsequent steps. Click Test trigger and follow the instructions for your trigger type.
Add actions
Click the + button below the trigger to add actions. Select a piece and the specific action you want to perform.For example:
- Google Sheets → Add row (to log call data)
- Slack → Send message (to notify your team)
- HTTP → Make request (to call any API)

Connect data between steps
Each action can use data from previous steps. When configuring a field, click on it to open the available data panel. You’ll see the output data from all previous steps.For example, you can insert the call transcription (from the trigger) into the body of an email (in a Gmail action).
Draft vs Published
Workflows have a versioning system with two states:Draft
The version you’re editing. Changes in the draft don’t affect the workflow running in production. You can experiment without risk.
Published
The active version that executes when the trigger fires. Once published, this version is frozen.
A workflow must be published before it can be enabled. If you try to enable a draft-only workflow, it won’t activate.
Enabling and Disabling Workflows
Once published, you can enable or disable a workflow at any time:- Enabled: The workflow executes when the trigger fires
- Disabled: The workflow exists but doesn’t execute
Logic and Flow Control
Beyond linear actions, you can add logic to your workflows:Conditions (Branch)
Conditions (Branch)
Add if/else branches to execute different actions based on conditions. For example, send a different email depending on whether the call lasted more or less than 5 minutes.
Loops
Loops
Iterate over a list of items. Useful when you need to process multiple records, like sending messages to a list of contacts.
Delays
Delays
Pause workflow execution for a set time. Useful for waiting before executing a follow-up action.
Custom code
Custom code
If you need specific logic, you can add a JavaScript/TypeScript code step to transform data or perform custom operations.
Execution History
Every time a workflow executes, it’s recorded in the execution history. From here you can see:- The status of each execution (successful or failed)
- The input and output data of each step
- The exact time of each execution
- Detailed errors if any step failed
Next Steps
Use templates
Get started quickly with pre-configured workflows.
Assign to agents
Connect your workflows with agents so they execute.
The Diga piece
Learn about Diga’s triggers and actions.
Introduction to workflows
Review the fundamental workflow concepts.