Building Your First Flow
Ready to process your first lead? In the next 10 minutes, you'll build a working flow that receives leads, validates them, and delivers them to a destination. Let's dive in!
๐ You Are Here
You're about to create your first flow - the intelligent pipeline that processes leads from arrival to delivery. Think of it as setting up an automated quality control department that works 24/7.
๐ฏ What You'll Build
By the end of this guide, you'll have:
- A working flow that can receive leads
- Basic validation to ensure data quality
- A destination configured for lead delivery
- Your first successfully processed lead!
๐ Prerequisites (2 minutes of prep)
Before we start, you'll need:
- Access to your account (you're probably already logged in)
- A destination in mind (your CRM, email, or even just a webhook for testing)
- 10 minutes of uninterrupted time
๐ Step 1: Create Your Flow
Let's create your flow:
Navigate to Flows
- From the main navigation, click Flows
- You'll see the flows list (might be empty if you're brand new)
Create a New Flow
- Click the Create Flow button (usually a blue button in the top right)
- Give your flow a meaningful name like "My First Lead Flow" or "Insurance Leads - California"
๐ก Pro tip: Use descriptive names. "Test Flow 1" becomes confusing when you have "Test Flow 47"
Save Your Flow
- Click Create or Save
- Congratulations! You now have a flow. It doesn't do anything yet, but we'll fix that.
๐ Step 2: Add a Source (Where Leads Come From)
Your flow needs at least one source - the entry point for leads:
Open Your Flow
- Click on your flow name to enter edit mode
- Look for the Sources tab
Add Your First Source
- Click Add Source
- For your first flow, choose Default Source (it's the simplest)
- Name it something clear like "Web Form" or "API Endpoint"
Configure the Source
- Note the submission URL - this is where leads will be sent
- Copy this URL, you'll need it for testing
- Leave other settings as default for now
๐ก What just happened? You created an endpoint that can receive lead data. It's like setting up a mailbox for your leads.
โ Step 3: Set Up Basic Validation
Let's add some acceptance criteria to ensure you only process quality leads:
Find Acceptance Criteria
- In your flow, look for Acceptance Criteria or Pre-Processing
- Click Add Rule or Configure
Add Your First Rule
- Let's start simple: require an email address
- Create a rule:
email is not blank
- Add a clear rejection reason: "Email address is required"
Add Another Rule
- Require a phone number:
phone is not blank
- Rejection reason: "Phone number is required"
- Require a phone number:
๐ก Why this matters: These rules protect you from processing incomplete leads. If someone submits without an email or phone, they'll get a clear message about what's missing.
๐ค Step 4: Add a Destination (Where Leads Go)
Now let's configure where your validated leads should go:
Navigate to Flow Steps
- Find the Steps or Flow Steps section
- Click Add Step
Choose Step Type
- Select Destination (or Recipient for internal notifications)
- For testing, Webhook is perfect - it just sends data to a URL
Configure Your Destination
- For webhook: Use a service like webhook.site for testing
- Name it clearly: "Test Webhook" or "My CRM"
- Map the fields you want to send
๐ก Quick Test Option: Use webhook.site to create a free test endpoint. You'll see exactly what data is being sent.
๐งช Step 5: Test Your Flow
Time to see your flow in action:
Prepare Test Data
{ "email": "test@example.com", "phone": "555-123-4567", "first_name": "Test", "last_name": "Lead" }
Submit a Test Lead
- Use a tool like Postman or curl
- Send a POST request to your source URL
- Include your test data as JSON
Example using curl:
curl -X POST https://app.leadconduit.com/flows/YOUR_FLOW_ID/sources/YOUR_SOURCE.json \ -H "Content-Type: application/json" \ -d '{"email":"test@example.com","phone":"555-123-4567","first_name":"Test","last_name":"Lead"}'
Check the Results
- Go to your flow's Events tab
- You should see your test lead!
- Check if it was accepted and delivered
๐ Success! What Just Happened?
If your test worked, here's what your flow just did in milliseconds:
- Received the lead at your source endpoint
- Validated the data (parsed the email and phone)
- Checked your acceptance criteria (email and phone present)
- Delivered the lead to your destination
- Recorded every step in the event log
You just built a working lead processing pipeline!
๐ซ Troubleshooting Common Issues
"My lead was rejected"
- Check the Events tab for the specific rejection reason
- Verify your test data includes all required fields
- Make sure the data format matches (e.g., valid email format)
"I don't see my lead"
- Confirm you sent to the correct URL
- Check if you included Content-Type: application/json
- Look for authentication errors in your HTTP response
"Delivery failed"
- Verify your destination configuration
- Check if the destination URL is accessible
- Review the error message in the Events tab
๐ฏ Next Steps
Your basic flow is working! Here's how to level up:
Add More Sophistication
- Add more sources for different vendors
- Configure field mapping for complex data
- Set up filters for routing
Enhance Your Validation
- Implement TrustedForm for consent verification
- Add suppression lists to prevent duplicates
- Configure volume caps to control flow
Connect Real Systems
๐ก Pro Tips
Start Simple: Get a basic flow working before adding complexity. You can always add more steps and rules later.
Use Clear Names: "California Solar Leads" is better than "Flow 1". You'll thank yourself later.
Test Often: Send test leads whenever you make changes. It's easier to spot issues early.
Check Events: The Events tab is your best friend for understanding what happened to each lead.
๐ Related Documentation
- Flow Concepts - Deep dive into how flows work
- Source Configuration - Advanced source options
- Event Reference - Understanding the event system
๐ Congratulations! You've built your first flow and processed your first lead. You're officially on your way to mastering lead management. Keep experimenting, and don't hesitate to reach out to support@activeprospect.com if you need help!
Comments
0 comments
Please sign in to leave a comment.