What’s built in and what isn’t
So the work is to route handoffs. Live chat only makes sense when someone can answer, so put it behind a check.
Route handoffs by availability
A Procedure can branch on{{agentAvailable}}, which is true when at least one Helpdesk agent’s status is Available. Use it to offer live chat when someone is in, and open a ticket when no one is.
1
Add both handoff Actions
On Build > Actions, add Chatbase Live Chat and an Escalations Action with Chatbase as the ticket platform. Turn on Only use in Procedures on live chat so the AI agent can’t call it outside the check.
2
Start from the template
On Build > Procedures, open the Templates tab and pick Live agent availability. It uses live chat if
{{agentAvailable}} is true, and create_ticket otherwise.3
Tailor the steps
Edit When to use and the steps. Add any questions to ask first, such as an order number, and what to tell the customer in each branch.
4
Activate and publish
Set the Procedure to Active, save, and Publish.
@ in a step to pick the Actions on your own AI agent.
Make availability follow your working hours
Who counts as Available comes from Helpdesk status. You can set it by hand, but Scheduling does it for you: a teammate on a Shift is Available during shift hours and Away outside them or on Time off.- Go to Settings > Helpdesk > Scheduling and click Add shift.
- Pick a timezone and set start and end times for each working day. Overnight shifts are allowed.
- In Agent schedules, put each teammate on a shift.
- Add holidays and leave under Time off. Time off covers whole days.
Or route by the clock
If you’d rather branch on fixed hours than on who is available, use a time condition. The Live agent availability by hours template branches on “The current time in UTC+3 is between 9:00 AM and 5:00 PM”: inside those hours it uses live chat, otherwisecreate_ticket. Edit the hours and timezone, and always name the timezone, because the AI agent compares the condition against the current time in UTC.
A time condition doesn’t know about holidays or a teammate calling in sick, so {{agentAvailable}} with shifts is usually more accurate.
What happens to tickets created after hours
An after-hours ticket waits for your team:- Assignment. If no agent is eligible, the ticket stays unassigned in the Unassigned view. A shift starting doesn’t pick it up by itself. To fix that, turn on Assign to next available shift for a team using Balanced or Round Robin, so the ticket goes straight to the agent whose shift starts soonest. See Assign to next available shift.
- Reaching the customer. With the Chatbase Helpdesk, Escalations collect the customer’s email (except on Phone), and your team’s replies reach the customer in the same chat or thread. On the Chat Bubble, each reply is also emailed to the customer when Chatbase has their email, so they don’t need to keep the page open.
- Alerts. Unassigned tickets don’t play a sound for anyone. Triggers can send an email or Slack message when a ticket is created, but can’t check the time.
Set expectations in your instructions
Even with routing in place, customers ask “When will I hear back?” Put the answer in Build > Instructions so the AI agent answers consistently, and keep it free of promises your team can’t keep. Example instructions:Example conversation
Saturday, 11 PM, on the Chat Bubble:- Customer: My order #1042 hasn’t arrived. Can I talk to someone?
- The Procedure runs.
{{agentAvailable}}is false because no teammate is on shift. - AI agent: Our team is offline right now. I’ll open a ticket so they can follow up first thing on Monday. What’s your email?
- Customer: jane@example.com
- The AI agent creates the ticket. With Assign to next available shift on, it’s assigned to the teammate whose shift starts first on Monday.
- On Monday, the teammate replies from the Helpdesk. The reply appears in the chat and is emailed to jane@example.com.
Test it
- Set every teammate to Away, or test outside shift hours, and ask for a person in the Playground. Check that a ticket is created instead of a live chat.
- Set one teammate to Available and ask again. Check that live chat starts.
- Add a Test with a simulated customer who asks for a person, and your Escalations Action under Expected Actions.
Frequently asked questions
Does my AI agent work 24/7?
Does my AI agent work 24/7?
Yes. It answers on every channel at any time. Only handoffs to your team depend on your hours, and you route those with a Procedure.
Can I turn off the AI agent outside business hours?
Can I turn off the AI agent outside business hours?
There’s no schedule for that. You can turn a channel off with its Visibility switch, but that stops it at any hour until you turn it back on.
What happens if live chat starts when no one is available?
What happens if live chat starts when no one is available?
The ticket is still created and the AI agent stops replying. The customer sees Waiting for support agent to join until a teammate replies or the ticket is closed. There’s no timeout and no fallback to the AI agent, so put live chat behind an
{{agentAvailable}} check.Can a Trigger route tickets differently after hours?
Can a Trigger route tickets differently after hours?
Route after-hours tickets with a Procedure: check
{{agentAvailable}}, create a ticket when no one is on shift, and turn on Assign to next available shift so the ticket goes to the teammate whose shift starts first. Triggers themselves don’t have a time condition, so the Procedure handles the timing.Does {{agentAvailable}} use my shifts?
Does {{agentAvailable}} use my shifts?
Yes. It’s
true when at least one Helpdesk agent is Available, and a teammate on a shift is Available only during their shift hours, so it follows your schedule. Teammates without a shift count when their manual status is Available.Related
Chatbase Live Chat
Hand a conversation to your team in real time.
Scheduling
Set shifts and time off for your team.
Escalations
Open a ticket for your team to follow up.
Procedures
Build step-by-step flows with conditions.