Skip to main content
Build an AI bot that takes over when your team clocks out — answering common questions, capturing urgent issues, and queuing everything for morning follow-up so no customer is left waiting.
Overview

Auto follow-up settings panel showing timing and re-engagement message options

Auto follow-up action configuration for re-engaging after-hours contacts

Architecture overview

The after-hours support flow works as follows:
  1. Working hours detection — A workflow checks whether the incoming message arrives during or outside business hours.
  2. During hours — Messages route to your human team as normal. The bot stays inactive or assists in suggestive mode.
  3. After hours — The bot activates and greets the customer, letting them know it is an AI assistant available outside business hours.
  4. Knowledge base lookup — The bot answers common questions using your knowledge base.
  5. Urgent issue capture — If the issue is urgent (e.g., locked out, emergency, billing problem), the bot collects details and flags it for priority follow-up.
  6. Morning handoff — When business hours resume, your team gets a summary of all after-hours conversations with priority tags.

Step-by-step build

1

Define your business hours

Before building anything, decide your exact hours. You will use these in your workflow conditions.Adjust these to match your actual schedule. Make sure to account for your timezone.
2

Populate your knowledge base

Navigate to AI Agents > Knowledge Base and add content that covers the most common after-hours questions:
  • Business hours and location — “What time do you open?” is the number one after-hours question
  • Services and pricing — Basic descriptions and price ranges
  • Emergency procedures — What to do if there is an urgent issue
  • Contact methods — How to reach you during business hours
  • FAQs — Return policies, booking procedures, cancellation rules, parking, etc.
See the knowledge base guide for detailed setup instructions.
Review your conversation history for the last 30 days. The questions that come in after 5 PM are the ones your knowledge base needs to answer.
3

Create the after-hours bot

Navigate to AI Agents > Conversation AI and click Create Bot.
  • Name: “After-Hours Support”
  • Type: Auto-pilot (this bot needs to work without human oversight)
  • Channels: Toggle on all channels where customers reach you — SMS, Web Chat, Facebook Messenger, Instagram, WhatsApp
  • Calendar: Leave unassigned unless you want the bot to book next-day appointments
Set this bot as a non-primary bot. Your primary bot or human team handles daytime conversations. The after-hours bot only activates via workflow trigger.
4

Write the bot prompt

Paste the full prompt from the section below into the System Prompt field. The prompt is designed to:
  • Clearly identify itself as an after-hours assistant
  • Set expectations about response times for complex issues
  • Answer common questions from the knowledge base
  • Detect and flag urgent issues
  • Collect contact details for follow-up
5

Build the after-hours activation workflow

Go to Automation > Workflows and create a workflow:Trigger: Inbound message received (any channel)Condition: Check if the current time is outside business hoursIf outside hours:
  1. Enable the “After-Hours Support” bot on this contact
  2. Add tag “after-hours-inquiry”
If during hours:
  1. Disable the “After-Hours Support” bot (let the primary bot or human handle it)
See understanding workflow triggers for trigger configuration details.
Follow-up scenario settings showing when and how the bot re-engages contacts who go silent

Follow-up scenario configuration for after-hours re-engagement

6

Build the urgent issue workflow

Create a second workflow triggered by Tag Added — “urgent-after-hours” (the bot adds this tag when it detects an urgent issue):
  1. Send internal SMS to the on-call team member with the contact name and issue summary
  2. Send internal email with full conversation transcript
  3. Create task assigned to the on-call person with a 30-minute due time
  4. Move opportunity to an “Urgent” pipeline stage (if applicable)
Only use urgent escalation for truly critical issues. If too many conversations get flagged as urgent, your team will start ignoring the alerts. Define “urgent” clearly in your bot prompt.
Custom trigger selection for scheduling the morning handoff

Choosing a custom trigger for the morning handoff workflow

7

Build the morning handoff workflow

Create a daily scheduled workflow that runs at the start of business hours (e.g., 8:55 AM):
  1. Filter contacts tagged “after-hours-inquiry” from the previous night
  2. Send summary email to your team lead with: number of conversations, list of contact names, conversation summaries, and any urgent flags
  3. Create tasks for each conversation that needs follow-up
  4. Remove tag “after-hours-inquiry” after processing
This ensures nothing falls through the cracks between night and morning.
8

Configure the daytime handback

At the start of business hours, the after-hours bot should stop for all active contacts:
  1. In your morning workflow, add an action to disable the after-hours bot on all contacts where it is active
  2. If a conversation was mid-flow, the handback allows a human to pick up where the bot left off
  3. Send the customer a message: “Good morning! Our team is now available. A team member will follow up with you shortly regarding your inquiry.”

Full prompt


Testing your after-hours bot

1

Working hours test

Send a message during business hours and verify the after-hours bot does NOT activate.
2

After-hours activation test

Send a message outside business hours and verify the bot activates and sends the after-hours greeting.
3

FAQ test

Ask five common questions (hours, location, services, policies). Verify the bot answers accurately from the knowledge base.
4

Unknown question test

Ask a question not in the knowledge base. Verify the bot admits it does not know and offers to have the team follow up.
5

Urgent issue test

Describe an urgent issue (e.g., “I was charged twice on my credit card”). Verify the bot flags it as urgent, collects your details, and triggers the escalation workflow.
6

Morning handoff test

Verify the morning summary email arrives at the correct time with a complete list of overnight conversations.
7

Daytime handback test

Verify that when business hours resume, the after-hours bot is disabled and the handback message is sent to customers with active conversations.

Optimization tips

  1. Review overnight transcripts weekly. Look for questions the bot could not answer and add them to the knowledge base. After a few weeks, the bot should handle 80%+ of after-hours inquiries without escalation.
  2. Adjust urgent criteria based on data. If too many issues are flagged urgent, tighten the criteria. If your team finds missed urgent issues in the morning, loosen them.
  3. Track resolution by channel. Some channels (like web chat) may have higher resolution rates than others. Focus knowledge base improvements on the weakest-performing channels.
  4. Add appointment booking. If many after-hours contacts want to schedule something, connect a calendar and let the bot book next-day appointments. See appointment scheduler.
  5. Test timezone handling. If you serve customers across timezones, make sure your business hours logic accounts for the customer’s local time, not just yours.

KPIs to measure success


Next steps

AI receptionist

Combine after-hours support with a Voice AI receptionist for 24/7 phone coverage.

Multi-location bot

Manage after-hours support across multiple locations with different hours.

Knowledge base

Expand and optimize your knowledge base for higher resolution rates.

Workflow automation

Build more sophisticated time-based workflow triggers.
Last modified on March 5, 2026