AI Agent with Custom Tool: Email Check Sub-workflow
detail.loadingPreview
An AI agent workflow that uses a custom sub-workflow to check for email addresses in user input.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow demonstrates how an AI agent can leverage a custom sub-workflow to handle specific tasks. In this case, the sub-workflow checks if a user has provided an email address. If an email is missing, it prompts the user to include it in their next message and informs them that a human will be contacted for assistance. If an email is present, it messages a Slack channel for help.
Key Features
- AI agent orchestrates calls to custom tools.
- Sub-workflow checks for email presence using regex.
- Conditional logic to either prompt user for email or notify Slack.
- Memory buffer to maintain conversation context.
- Integration with OpenAI for AI model capabilities.
How To Use
- Set up Credentials: Configure your OpenAI API key and Slack API credentials.
- Configure Nodes: Adjust the Slack channel (
#general) and any other parameters as needed. - Trigger Workflow: The
When chat message receivednode can be triggered via a webhook, or theWhen Executed by Another Workflownode can be used to call this workflow with user input. - Test: Interact with the workflow through the chat interface or by executing it with external data.
Apps Used
Workflow JSON
{
"id": "bf95df09-3eb9-4ee5-bb7d-94eff3db0e33",
"name": "AI Agent with Custom Tool: Email Check Sub-workflow",
"nodes": 0,
"category": "AI",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: bf95df09-3eb9...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Deep Research Report Generation
Generate in-depth research reports by leveraging OpenRouter, Google Search, webhooks, and Notion integration.
Auto Reply Draft with OpenAI Assistant
Automatically generate reply drafts for incoming emails using OpenAI Assistant and manage labels.
AI Assistant for Apple Shortcuts
Trigger an AI agent via 'Hey Siri' for voice-based interactions.
AI Summarizer (LLM-Ready)
Summarize text using an LLM or a local fallback.
AI Agent with Custom Tool for Email Handling
An AI agent workflow that uses a custom tool to handle user queries. It checks for an email address and either escalates to human support or prompts the user to provide an email.
Configurable LLM Chat via OpenRouter
A workflow that uses any LLM model available through OpenRouter for conversational AI.