How do I stop the ai from replying if an admin reply instead

I have created a workflow in my n8n for fb page to automate replies using a webhook as trigger and a get docs for its knowledgebase, now i have a problem if customer wants to talk to an admin instead of an ai, how do i make the ai send an email to me and once i replied the ai should sleep for a timer that resets everytime i reply again

@Exequiel_Co To solve this:

You’ll need to add a few components to your existing workflow:

Intent detection - Recognize when someone wants to talk to a human

Email notification - Alert you when handoff is requested

Conversation state tracking - Mark conversations as “human-handled”

Timer/cooldown system - Pause AI responses during human interaction

Cheers

@Exequiel_Co

To handle human handoff in n8n:

  1. Detect intent – Check messages for “talk to human” or “admin” and set handover = true.

  2. Send email – Notify you immediately with customer info.

  3. Track conversation – Store conversation_id, state (human-handled/ai-active), and last_admin_reply in a DB or Google Sheet.

  4. Pause AI – Use a Wait/Delay node or DB logic. AI stays paused while a human handles the conversation and resumes after a timer that resets on each reply.

Flow:
Webhook → AI/KB → IF handover? → Yes: Email → Update state → Wait → Resume AI | No: Continue AI

This way, AI pauses during human interaction, you get notified, and state/timers are tracked.

@Exequiel_Co To stop the AI when an admin takes over, add handoff + state tracking to your n8n workflow.

How to do it:

  1. Detect intent
    Check messages for “talk to human” or “admin”. If true, set handover = true.

  2. Notify admin
    Send yourself an email with the user and conversation details.

  3. Track conversation state
    Store conversation_id and state (ai_active or human_active) in a DB, Sheet, or Data Store.

  4. Pause AI replies
    Before sending any AI response, check the state.
    If human_active, the AI does nothing.

  5. Resettable timer
    Each time you reply manually, update last_admin_reply_time.
    After X minutes of no admin replies, switch state back to ai_active.

Flow:
Webhook → Intent check → IF handover → Email admin → Set human_active
Else → Check state → AI replies only if ai_active

This will make it work, hope this helps.