Ask a human

Ask a human automates user inquiries, seamlessly connecting AI responses with human support when needed. It verifies email submission for follow-up, enhancing communication efficiency and ensuring users receive timely assistance.

7/8/2025
17 nodes
Complex
manualcomplexlangchainexecuteworkflowtriggersticky noteslackadvancedlogicconditionalcommunicationnotification
Categories:
Communication & MessagingComplex WorkflowManual TriggeredBusiness Process Automation
Integrations:
LangChainExecuteWorkflowTriggerSticky NoteSlack

Target Audience

This workflow is ideal for:
- Customer Support Teams: To efficiently handle user inquiries that require human intervention.
- Businesses Utilizing AI: Organizations that want to integrate AI-driven solutions with human support to enhance customer experience.
- Developers: Those looking to implement automated workflows using n8n and LangChain for better user interaction.
- Product Managers: Professionals who need insights into customer queries and feedback for product improvement.

Problem Solved

This workflow addresses the challenge of handling user inquiries that an AI agent cannot answer confidently. It ensures that:
- Users receive timely responses, even when the AI lacks the necessary information.
- Queries that require human attention are escalated effectively, preventing user frustration.
- Customer support teams are notified promptly to assist users, maintaining a high level of service.

Workflow Steps

  • Chat Trigger: The workflow begins with a user initiating a chat, which triggers the AI agent.
    2. AI Agent: The AI attempts to answer the user's question. If it is uncertain, it uses the Not sure? tool.
    3. Window Buffer Memory: This component helps the AI remember previous interactions, enhancing the context of the conversation.
    4. Check for Email: The workflow checks if the user has provided an email address. If not, a prompt is sent asking for it.
    5. Message Slack for Help: If the user has provided an email, a message is sent to a Slack channel notifying the support team of the user's inquiry.
    6. Confirm Human Messaging: After notifying the support team, a response is sent back to the user confirming that assistance is on the way.
  • Customization Guide

    Users can customize this workflow by:
    - Modifying the AI Agent's System Message: Adjust the system message to change how the AI interacts with users.
    - Changing Slack Channel Settings: Update the Slack channel ID to direct notifications to a different team or channel.
    - Customizing Email Prompt: Edit the prompt sent to users for email collection to better fit the organization's tone and style.
    - Adjusting Memory Settings: Tweak the memory settings in the Window Buffer Memory node to control how much context is retained during conversations.