Quickstart: Build Your First Workflow
Create your first AI-powered workflow in FlowGenX AI in under 15 minutes.
In this quickstart guide, you'll build a simple but powerful workflow that demonstrates the core capabilities of FlowGenX AI. By the end, you'll have created an automated email processing agent that categorizes incoming emails and routes them to the appropriate team.
What You'll Build
We'll create a workflow that:
- Monitors an email inbox for new messages
- Uses AI to analyze and categorize emails
- Routes emails to different departments based on content
- Sends confirmation notifications
Time to complete: ~15 minutes
Todo List
Random Quote
Loading quote...
Prerequisites
Before you begin, make sure you have:
- A FlowGenX AI account (sign up at flowgenx.ai)
- Access to the FlowGenX AI dashboard
- An email account you can use for testing
Step 1: Create Your First Agent
Navigate to the FlowGenX AI dashboard and click Create Agent.
- Click the "+ New Agent" button in the top right
- Choose "Workflow Agent" from the template gallery
- Name your agent:
Email Router Agent - Add a description:
Automatically categorize and route incoming emails - Click Create
Your agent is now created and ready to be configured!
Step 2: Set Up the Email Trigger
Every workflow needs a trigger to start execution. Let's configure ours to monitor an email inbox.
- In the workflow canvas, click on the Trigger node
- Select Email from the trigger types
- Configure the email connection:
{
"provider": "gmail",
"folder": "inbox",
"poll_interval": "5m"
}- Click Authenticate and grant FlowGenX AI access to your email
- Click Save Trigger
The agent will now check for new emails every 5 minutes.
Step 3: Add AI Categorization
Now let's add intelligence to analyze and categorize emails.
- Click the "+" button below the trigger node
- Select AI Action → Classify Text
- Configure the classification:
- Input:
{{trigger.email.body}} - Categories:
Support, Sales, Billing, General - Model:
claude-sonnet-4-5
- Input:
- Name this step:
Categorize Email - Click Save
The AI will now analyze each email and assign it to one of your predefined categories.
Step 4: Add Routing Logic
Let's route emails to different destinations based on the AI's classification.
- Click the "+" button below the categorization step
- Select Logic → Switch
- Configure the switch conditions:
{
"switch_on": "{{categorize_email.category}}",
"cases": [
{
"value": "Support",
"action": "route_to_support"
},
{
"value": "Sales",
"action": "route_to_sales"
},
{
"value": "Billing",
"action": "route_to_billing"
},
{
"default": "route_to_general"
}
]
}- Click Save
Step 5: Configure Action Paths
For each routing path, let's add an action to forward the email.
For Support Team:
- Click on the Support branch
- Add Email → Forward Email
- Configure:
- To:
support@yourcompany.com - Subject:
[Support] {{trigger.email.subject}} - Body:
{{trigger.email.body}}
- To:
For Sales Team:
- Click on the Sales branch
- Add Email → Forward Email
- Configure:
- To:
sales@yourcompany.com - Subject:
[Sales Lead] {{trigger.email.subject}} - Body:
{{trigger.email.body}}
- To:
Repeat for Billing and General
Configure similar forwarding actions for the remaining branches.
Step 6: Add Confirmation Notification
Let's send a confirmation to the original sender.
- Add a new step after all routing paths merge
- Select Email → Send Email
- Configure:
{
"to": "{{trigger.email.from}}",
"subject": "We've received your message",
"body": "Thank you for contacting us. Your message has been forwarded to our {{categorize_email.category}} team. We'll respond within 24 hours."
}- Click Save
Step 7: Test Your Workflow
Time to see your agent in action!
- Click Test Workflow in the top right
- Choose Use Sample Data or Send Test Email
- If sending a test email:
- Send an email to your monitored inbox
- Include text like: "I need help resetting my password"
- Watch the execution in real-time on the canvas
- Verify that the email was categorized and routed correctly
Success! Your email should be categorized as "Support" and forwarded to the support team.
Step 8: Deploy to Production
Once you're happy with the test results, deploy your agent.
- Click Deploy in the top right
- Review the deployment checklist
- Select Production environment
- Click Confirm Deployment
Your agent is now live and will process incoming emails automatically!
Monitor Your Agent
Track your agent's performance in real-time:
- Navigate to Dashboard → Agents
- Click on your
Email Router Agent - View metrics:
- Total emails processed
- Category distribution
- Average processing time
- Success rate
Execution History
View detailed logs of each email processed
Performance Metrics
Track response times and throughput
Error Logs
Identify and troubleshoot any issues
Understanding the Workflow
Let's break down what your agent does:
The workflow demonstrates key FlowGenX AI concepts:
- Triggers automatically start workflows
- AI Actions provide intelligent processing
- Routing Logic directs flow based on conditions
- Integrations connect to external systems
Customize Your Workflow
Now that you have a working agent, try customizing it:
Add More Categories
categories: [
"Support",
"Sales",
"Billing",
"Feature Request",
"Bug Report",
"General"
]Add Priority Detection
Add another AI step to detect urgent emails:
{
"action": "extract_sentiment",
"detect_urgency": true,
"urgent_keywords": ["urgent", "emergency", "asap", "critical"]
}Add Slack Notifications
Send notifications to Slack when high-priority emails arrive:
- Add Slack → Send Message action
- Configure:
{
"channel": "#customer-support",
"message": "🚨 Urgent email from {{trigger.email.from}}: {{trigger.email.subject}}"
}Common Issues & Solutions
Next Steps
Congratulations! You've built your first AI-powered workflow. Here's what to explore next:
Advanced Workflows
Learn about loops, conditions, and error handling
Custom Integrations
Connect to your proprietary systems
Agent Templates
Explore pre-built workflows for common use cases
API Documentation
Integrate FlowGenX AI into your applications
Get Help
Need assistance? We're here to help:
- 💬 Join our Community Discord
- 📖 Browse the Full Documentation
- 🎓 Watch Video Tutorials
- ✉️ Email support: support@flowgenx.ai
Next: Learn about Advanced Workflow Patterns to build more sophisticated agents.