Automate a business process
At a glance
This tutorial walks you through creating an automated workflow that reacts to an event in your ontology, calls an AI agent to analyze the situation, and sends an email notification.
Modules used: Ontologie, Workflow Builder, Agent Studio, Email.
Estimated time: 20 minutes.
What you'll do
- Create a workflow triggered by an ontology event
- Add a condition to filter relevant events
- Call an AI agent to generate a summary
- Send an email notification with the summary
- Schedule the workflow for regular execution
Prerequisites
- A workspace with entities in the ontology
- At least one agent configured in Agent Studio
- The Workflow Builder module enabled
Step 1: Create the workflow
- Go to Workflow Builder.
- Click + New workflow.
- Name it (e.g.
Customer modification alert). - The canvas opens with a Start block.
Step 2: Add a trigger
- Delete the default Start block.
- Add an Event Trigger block from the palette.
- Configure the trigger:
- Event type:
Entity modified - Filter: Entity type =
Customer(optional, to react only to customer modifications)
- Event type:
The workflow will trigger automatically each time an entity of type Customer is modified.
Step 3: Add a condition
- Add a Condition block after the trigger.
- Configure the condition:
- Variable:
{{trigger.payload.changes}}containsstatus - Yes branch: continues the workflow
- No branch: ends the workflow (no action)
- Variable:
This filters to only process modifications to the status field.
Step 4: Call the AI agent
- On the Yes branch, add an AI Agent block.
- Configure the block:
- Agent: select your agent
- Prompt:
Summarize in 2 sentences the following modification: the entity "{{trigger.payload.name}}" had its status change from "{{trigger.payload.oldValue}}" to "{{trigger.payload.newValue}}". Indicate if any action is needed.
- Name the output variable:
agent_summary
Step 5: Send an email
- Add a Send Email block after the AI Agent block.
- Configure:
- Recipient:
manager@example.com - Subject:
Customer modification: {{trigger.payload.name}} - Body:
{{agent_summary}}
- Recipient:
Step 6: Test
- Click Test in the toolbar.
- The Test mode runs the workflow in simulation.
- Check the debug panel to verify each step.
If the test is successful, activate the workflow:
- Click the Activate button in the top right.
- The workflow is now operational — it will trigger on each matching modification.
Optional: Add a schedule
To complement the event trigger with regular execution:
- Add a Schedule Trigger block in parallel.
- Configure:
Every day at 9:00 AM. - Add different logic on this branch (e.g. daily report).
For more details: Scheduling.
Expected outcome
Your workflow automatically reacts to entity modifications, has an AI agent analyze the situation, and notifies the responsible parties by email. The process is fully automated.
Going further
- Resilience and retry — Handle errors automatically
- Pipeline alerts — Get alerted on workflow failures
- Connect and analyze — Feed the ontology with external data
Need help?
Contact us: Support and contact.