Prerequisites
Before you begin, make sure you have:- A Dari account at app.usedari.com
- Your API key from the dashboard
- The Dari Python SDK installed:
pip install dari
Step 1: Create Your First Workflow
- Log in to app.usedari.com
- Navigate to Workflows in the sidebar
- Click Create New Workflow
- Give your workflow a name (e.g., “My First Workflow”)
Step 2: Add Workflow Steps
Add steps to your workflow using the visual builder:Browser Action Step
Click Add Step → Browser Action and enter a natural language instruction:Browser Agent Step
For multi-step tasks, add a Browser Agent:Browser Code Step
For precise data extraction, add a Browser Code step:Step 3: Define Input Variables
Make your workflow reusable by adding input variables:- Click Add Variable in the workflow builder
- Name your variable (e.g.,
search_query) - Use it in your steps with
{{search_query}}
Step 4: Save and Get Workflow ID
- Click Save in the top right
- Click Publish to make it available via API
- Copy your Workflow ID from the workflow details
Step 5: Execute via API
Now execute your workflow programmatically:Step 6: Monitor Execution
Check the status and get results:Your First Complete Workflow
Here’s a complete example that creates a meeting:In the Dashboard:
Create a workflow with these steps:-
Step 1 (Browser Agent):
-
Step 2 (Browser Code):
In Your Code:
Common Patterns
Pattern 1: Data Extraction
Pattern 2: Form Submission
Pattern 3: Multi-Page Navigation
Next Steps
Choosing the Right Step Type
Learn when to use Actions, Agents, or Code
Browser Actions
Quick 2-step browser interactions
Browser Agents
Multi-step autonomous workflows
Browser Code
Custom JavaScript for precise control
Troubleshooting
Workflow fails immediately
Workflow fails immediately
Check that:
- Your workflow is published (not in draft mode)
- All required input variables are provided
- Your API key is valid
Workflow times out
Workflow times out
- Increase timeout:
timeout_minutes=30 - Simplify complex workflows into smaller steps
- Check if the target website is responsive
Cannot find element on page
Cannot find element on page
- Use Browser Code for reliable element selection
- Add wait conditions in your workflow steps
- Verify the page loads completely before interaction
Output is empty
Output is empty
- Ensure your Browser Code step has a return statement
- Check that extraction selectors are correct
- Review execution logs in the dashboard