n8n New Workflow Prompt
Context
Use this prompt when creating a new n8n workflow for Pacing Agency automation tasks. Common use cases include:
- Webflow form submissions → TwentyCRM
- CircleLoop call recordings → storage
- Google Ads conversions → analytics
- Twilio message processing → notifications
- Cache clearing workflows
This prompt will help you:
- Design workflow structure with proper error handling
- Configure common nodes (Webhook, HTTP Request, Code, etc.)
- Set up testing and debugging
- Document the workflow for team use
Prerequisites
- n8n access - Login to
https://n8n.pacing.agency - Workflow purpose - Clear understanding of what the automation should do
- API credentials - Access to any services the workflow will integrate with
- Testing environment - Way to test webhook triggers or API calls
See n8n Tool Documentation for workflow IDs, best practices, and existing examples.
Prompt Template
I need to create a new n8n workflow for Pacing Agency with the following requirements:
**Workflow Purpose:**
- Name: [WORKFLOW_NAME]
- Description: [WORKFLOW_DESCRIPTION]
- Trigger: [TRIGGER_TYPE] (Webhook/Schedule/Manual/Polling)
- Expected frequency: [FREQUENCY] (per day/hour/as needed)
**Workflow Steps:**
1. [STEP_1] - e.g., "Receive webhook from Webflow form submission"
2. [STEP_2] - e.g., "Extract and validate form data"
3. [STEP_3] - e.g., "Create new deal in TwentyCRM"
4. [STEP_4] - e.g., "Send confirmation email via Twilio SendGrid"
5. [STEP_5] - e.g., "Log success to Google Sheets"
**Data Flow:**
- Input: [INPUT_DESCRIPTION]
- Expected data fields: [FIELD_1], [FIELD_2], [FIELD_3]
- Output: [OUTPUT_DESCRIPTION]
- Error handling: [ERROR_HANDLING_REQUIREMENTS]
**Integration Requirements:**
- Services to connect: [SERVICE_LIST]
- Authentication: [AUTH_METHOD] (API key/OAuth/Basic)
- Rate limits: [RATE_LIMIT_INFO]
Please provide:
1. **Workflow design** with node-by-node breakdown
2. **Node configurations** for each step:
- Node type and settings
- Field mappings
- Error handling
- Testing commands
3. **Webhook configuration** (if applicable):
- URL structure
- Authentication method
- Expected payload format
4. **Error handling strategy**:
- Retry logic
- Error notifications
- Fallback procedures
5. **Testing checklist**:
- Manual test steps
- Sample test data
- Expected results
- Common failure scenarios
6. **Documentation template** for adding to `tools/n8n.md`
Include:
- Code snippets for JavaScript nodes
- Example payloads for webhooks
- Troubleshooting tips
- Performance considerations
Format with clear sections and code blocks.
Variables to Customize
| Variable | Description | Example |
|---|---|---|
[WORKFLOW_NAME] | Descriptive workflow name | "Webflow Forms to TwentyCRM" |
[WORKFLOW_DESCRIPTION] | What the workflow does | "Automatically create deals in TwentyCRM from Webflow contact form submissions" |
[TRIGGER_TYPE] | How workflow starts | Webhook, Schedule, Manual, Polling |
[FREQUENCY] | How often it runs | "5-10 times per day", "Every hour", "As needed" |
[STEP_X] | Individual workflow steps | Specific actions in sequence |
[INPUT_DESCRIPTION] | What data enters | "Webflow form submission webhook payload" |
[FIELD_X] | Specific data fields | "name", "email", "company", "message" |
[OUTPUT_DESCRIPTION] | What data exits | "New deal created in TwentyCRM with contact info" |
[ERROR_HANDLING_REQUIREMENTS] | How to handle failures | "Retry 3 times, then email admin" |
[SERVICE_LIST] | Services to integrate | "Webflow, TwentyCRM, Twilio SendGrid" |
[AUTH_METHOD] | Authentication type | API key, OAuth 2.0, Basic Auth |
[RATE_LIMIT_INFO] | API rate limits | "100 requests/minute", "None known" |
Common Workflow Patterns
Webhook → Process → Store
- Receive webhook from external service
- Transform/validate data
- Store in database or CRM
Schedule → Fetch → Notify
- Run on schedule (cron)
- Fetch data from API
- Send notifications or reports
Manual → Multi-step → Callback
- Manually triggered workflow
- Complex multi-step processing
- Return results via webhook callback
Expected Output
The AI should provide:
1. Workflow Design Diagram
2. Node Configuration Examples
// Example: JavaScript node for data transformation
const formData = $input.first().json;
// Validate required fields
if (!formData.email || !formData.name) {
throw new Error('Missing required fields: email or name');
}
// Transform to TwentyCRM format
return {
json: {
name: formData.name,
email: formData.email,
company: formData.company || 'Unknown',
source: 'Webflow Contact Form',
deal_value: 0,
status: 'new'
}
};
3. Webhook Configuration
{
"webhookUrl": "https://n8n.pacing.agency/webhook/[WORKFLOW_ID]",
"method": "POST",
"authentication": "headerAuth",
"headers": {
"Authorization": "Bearer [TOKEN]"
},
"expectedPayload": {
"name": "string",
"email": "string",
"company": "string (optional)",
"message": "string"
}
}
4. Error Handling Configuration
// Retry logic example
const maxRetries = 3;
const retryDelay = 5000; // 5 seconds
for (let i = 0; i < maxRetries; i++) {
try {
// Attempt API call
const result = await apiCall();
return result;
} catch (error) {
if (i === maxRetries - 1) {
// Final retry failed, notify admin
await sendErrorEmail(error);
throw error;
}
await new Promise(resolve => setTimeout(resolve, retryDelay));
}
}
5. Documentation Template
### [Workflow Name]
**Workflow ID**: `[WORKFLOW_ID]`
**Purpose**: [WORKFLOW_DESCRIPTION]
**Trigger**: [TRIGGER_TYPE]
**Status**: Active/Inactive
**Created**: [DATE]
**Services integrated**:
- [SERVICE_1]
- [SERVICE_2]
- [SERVICE_3]
**Webhook URL** (if applicable): `https://n8n.pacing.agency/webhook/[WORKFLOW_ID]`
**Related documentation**:
<!-- test-link -->
- [Tool 1](../tools/[tool1].md)
<!-- test-link -->
- [Tool 2](../tools/[tool2].md)
**Testing**: [HOW_TO_TEST]
Follow-up Actions
After creating the workflow:
1. Document in n8n Tool Doc
Add workflow details to tools/n8n.md:
### [Workflow Name]
**Workflow ID**: `[WORKFLOW_ID]`
**Purpose**: [DESCRIPTION]
**Trigger**: [TRIGGER_TYPE]
**Frequency**: [FREQUENCY]
**Services**: [SERVICE_LIST]
**Status**: ✅ Active
**Related tools**: See [Webflow](../../tools/website/webflow.md), [TwentyCRM](../../tools/self-hosting/twentycrm.md)
2. Test Thoroughly
Before activating:
- Test with sample data
- Verify error handling works
- Test webhook authentication (if applicable)
- Check all service connections
- Verify data reaches destination correctly
3. Set Up Monitoring
Configure monitoring:
- Enable workflow execution notifications
- Set up error alerts
- Monitor execution times
- Track success/failure rates
4. Update Related Tool Docs
If workflow integrates services, document in relevant tool files:
- Example: Webflow cache clearing → Update
tools/webflow.md - Example: TwentyCRM deal creation → Update
tools/twentycrm.md
5. Share with Team
- Demonstrate workflow to team
- Document how to trigger manually (if needed)
- Explain error notifications
- Note any quirks or limitations
Related Documentation
- n8n Tool Documentation - All active workflows
- Webflow Documentation - Webflow integrations
- TwentyCRM Documentation - CRM integrations
- Twilio Documentation - SMS/Email integrations
- Google Ads Documentation - Conversion tracking
Success Criteria
Before activating the workflow, verify:
✅ Workflow is properly named and documented
✅ All nodes are configured correctly
✅ Webhook authentication is working (if applicable)
✅ Service credentials are valid and tested
✅ Error handling is implemented
✅ Workflow has been tested with real data
✅ Success/failure notifications are configured
✅ Workflow is documented in tools/n8n.md
✅ Related tool docs are updated
✅ Team is aware of new automation
Common Issues
Issue: Webhook not triggering
Symptoms: Workflow doesn't execute when webhook is called
Solutions:
- Verify webhook URL is correct:
https://n8n.pacing.agency/webhook/[WORKFLOW_ID] - Check workflow is activated (toggle switch is ON)
- Test with curl:
curl -X POST https://n8n.pacing.agency/webhook/[WORKFLOW_ID] \
-H "Content-Type: application/json" \
-d '{"test": "data"}' - Check n8n logs for errors
- Verify webhook authentication (if enabled)
Issue: Data not reaching destination
Symptoms: Workflow executes but data doesn't appear in destination service
Solutions:
- Check node execution results:
- Click on each node to see output
- Verify data is flowing correctly
- Test API credentials:
- Re-authenticate service connections
- Check API permissions
- Check data transformation:
- Verify field mappings are correct
- Look for missing required fields
- Check destination service directly:
- Manually create test record
- Verify API is working
Issue: Workflow execution fails
Symptoms: Red error indicators on nodes
Solutions:
- Click on failed node to see error message
- Common causes:
- Invalid credentials
- Missing required fields
- API rate limits exceeded
- Network/timeout issues
- Use "Try it out" feature to test individual nodes
- Check n8n execution logs
- Verify service status (is the API down?)
Issue: Slow workflow execution
Symptoms: Workflow takes too long to complete
Solutions:
- Check for unnecessary wait nodes
- Optimize JavaScript code nodes
- Use batch operations where possible
- Check API rate limits (might be throttling)
- Consider splitting into multiple workflows
- Use "Set" nodes to reduce data size between nodes
Issue: Duplicate executions
Symptoms: Same workflow runs multiple times for single trigger
Solutions:
- Check for duplicate webhook configurations
- Verify no duplicate workflows exist
- Add deduplication logic:
// Example: Deduplicate by email
const cache = $('Cache').all();
const email = $input.item.json.email;
if (cache.some(item => item.json.email === email)) {
// Duplicate found, skip
return [];
}
return [$input.item]; - Check webhook source isn't sending duplicates
Examples
Example 1: Webflow Form to TwentyCRM
Purpose: Automatically create deals from Webflow contact form submissions
Workflow Name: Webflow Forms to TwentyCRM
Trigger: Webhook
Services: Webflow, TwentyCRM
Steps:
1. Receive webhook from Webflow
2. Validate required fields (name, email)
3. Transform to TwentyCRM deal format
4. Create deal in TwentyCRM
5. Log success to execution history
Webhook: https://n8n.pacing.agency/webhook/webflow-forms-twentycrm
Example 2: Cache Clearing on Webflow Publish
Purpose: Clear Cloudflare cache when Webflow site is published
Workflow Name: Webflow Cache Clear
Trigger: Webhook (from Webflow publish event)
Services: Webflow, Cloudflare
Steps:
1. Receive webhook from Webflow
2. Extract site ID
3. Call Cloudflare API to purge cache
4. Send confirmation to Slack
Webhook: https://n8n.pacing.agency/webhook/webflow-cache-clear
Example 3: Google Ads Conversion Tracking
Purpose: Track offline conversions from TwentyCRM to Google Ads
Workflow Name: TwentyCRM to Google Ads Conversions
Trigger: Schedule (every 1 hour)
Services: TwentyCRM, Google Ads
Steps:
1. Fetch new deals from TwentyCRM (last hour)
2. Filter for deals with gclid
3. Transform to Google Ads conversion format
4. Upload conversions to Google Ads
5. Mark deals as "conversion tracked"
Last updated: 2026-01-07
Tested on: n8n v1.18.1
Estimated time: 20 minutes (design + testing)