Automatic replies on WhatsApp: after hours, keywords and menus
Customers message at night, on weekends and while you're busy. Want them to get an answer anyway? Set up an after-hours reply, keyword replies, a menu with buttons or a welcome message in Sonar. None of them need AI, and if you do use the AI Agent, there's a section on how they work together.
Which one to use
| You want | Use | Where |
|---|---|---|
| To tell people you're closed | An after-hours reply | Flows, After-hours reply |
| The same answer every time someone asks about prices, hours or where you are | A keyword reply | Flows, Keyword reply or menu |
| Buttons people tap to choose what they need | A reply menu | Flows, Keyword reply or menu |
| A hello the moment someone opens a chat with you | The number's welcome message | WhatsApp numbers, Welcome and ice breakers |
| A hello with buttons for people writing to you for the first time | A welcome flow | Flows, Welcome message |
| Real answers to any question, at night only | The AI Agent | AI Agent, When it answers by itself |
Everything here except the number's welcome message and the AI Agent is a flow. A flow sends messages for you when something happens. For everything else flows can do, see How WhatsApp flows work.
Before you start
- Connect your WhatsApp number to Sonar.
- Have your opening hours handy, plus short answers to the questions you get most.
Set up an after-hours reply
- Open Flows and press New flow.
- Press After-hours reply.
- Under Send from, choose the number customers write to.
- Start when is already set to a message, with Any message they send ticked. Leave it.
- In the If step, You're closed (outside opening hours), set when you open and close. It starts at 08:00 to 17:00.
- Choose your days: Monday to Friday, Monday to Saturday or Every day.
- Under Then, change the Reply with text words if you like. Say when you'll get back to them, like "We open at 8 tomorrow".
- Give it a name and hit Start flow.
The hours are in your business's time zone. Each person gets the reply at most once in 12 hours, so someone who sends five messages in an evening only gets it once.
Set up a keyword reply
- Open Flows and press New flow.
- Press Keyword reply or menu.
- Under Send from, choose the number.
- Under Words or phrases, type the words people send, with commas between them. For example: prices, price list, how much.
- In the Reply with text step, write your answer.
- Give it a name and hit Start flow.
A word matches in any case, as a whole word, anywhere in the message. So "prices" answers "What are your prices?", but not "price". If people use both, add both. The reply goes every time someone sends one of the words.
Welcome new customers
There are two ways to do it. Pick one, so nobody gets two hellos.
When they open the chat
- Open WhatsApp numbers.
- On the number's card, press More, then Welcome and ice breakers.
- Tick Send a welcome message and write it.
- Press Save.
It goes the moment someone opens a chat with this number for the first time, before they type. In the same place you can add up to 4 Ice breakers (questions of up to 80 characters people can tap) and up to 30 Commands that show when they type /. A command they pick is sent as their message, so a keyword reply with that word can answer it. More in Get customers to message you.
When they first write to you
- Open Flows, press New flow, then Welcome message.
- Under Send from, choose the number.
- Change the hello and its buttons in the Reply with text step. Buttons can start your keyword replies, as in a reply menu.
- Give it a name and hit Start flow.
It only answers someone writing to you for the very first time, on any of your numbers. Someone who has written before doesn't get it.
Automatic replies and the AI Agent
If your AI Agent is on, here's who answers:
- A keyword reply: the flow answers that message and the AI Agent leaves it alone. Don't use a common word like "hi" as a keyword, or the AI Agent stays quiet on lots of messages.
- An after-hours reply or a welcome flow: the flow sends its message and the AI Agent still answers too.
- The number's welcome message: it goes when they open the chat. Once they type, flows and the AI Agent answer as usual.
To have the AI Agent answer at night and your team by day, use its own opening hours:
- Open AI Agent.
- Next to When it answers by itself, choose Only when you're closed.
- Set Open and Close, and tick the days you're open.
- Leave Draft replies in Copilot during opening hours ticked if your team answers in Sonar. Untick it if they answer from the WhatsApp app.
- Press Save hours.
Then you might not need an after-hours reply at all, because the AI Agent gives proper answers at night. Heads up: these hours are separate from the hours in a flow's If, so if you use both, set them the same. Whether the AI Agent can answer by itself depends on your plan. See Pricing and the AI Agent guide.
Test it
- From your own phone, send the number one of your keywords. The reply should come within seconds.
- For an after-hours reply, message the number outside the hours you set.
- Open the flow's People to see who it answered, and why anyone was skipped.
Test numbers and the Tester tag are in Test a flow.
If it doesn't work
- No reply at all: check you hit Start flow, and that Send from is the number they wrote to.
- A keyword didn't answer: opt-out words such as STOP never start a keyword reply. A subscribe word such as START only starts a keyword reply that names it.
- The after-hours reply came at the wrong time: check the times and days in the If step.
- The welcome flow didn't greet you: your own phone has written to the number before, so test it from one that hasn't.
- The customer got two replies: an after-hours or welcome flow and the AI Agent both answered. Set the AI Agent to Only when you're closed and drop the after-hours reply, or keep the flow's message short.
Questions
Do automatic replies need a WhatsApp template?
No. They answer a message the customer has just sent, so they go inside the 24 hours WhatsApp gives you to reply in your own words.
Do automatic replies go to people who opted out?
No. Someone who replied STOP or opted out gets no flow messages, automatic replies included.
Can I switch an automatic reply off for a while?
Yes. Hit Pause on the flow in your Flows list, and Resume when you want it back.
I have more than one number. Does one reply cover them all?
No. Each flow sends from the one number you pick under Send from, so make one for each number you want it on.
More guides
- WhatsApp pricing in South Africa
- POPIA and WhatsApp marketing
- Event invites with one-tap RSVPs
- AI Agent and Copilot: a WhatsApp chatbot in your voice
- Set up your WhatsApp team inbox
- Use Sonar with the WhatsApp Business app
- Disconnect your WhatsApp Business app number
- Import your contacts
- Send your first WhatsApp broadcast in Sonar
- Order and booking updates from your other systems
- Sell on WhatsApp: catalog, orders and payment links
- Which number to use for WhatsApp
- What Meta needs from you before Sonar can send
- Plans and billing in Sonar: what you pay, and to whom
- Connect a client's WhatsApp number
- Two-step sign-in for your Sonar account
- WhatsApp API providers in South Africa, compared
- How WhatsApp flows work
- WhatsApp calls and voicemail
- Send WhatsApp calls to 3CX
- WhatsApp message templates: write one and get it approved
- Connect WhatsApp to n8n
- Connect WhatsApp to HubSpot
- What Sonar does that others don't publish
- Click-to-WhatsApp ads: answer every ad lead in time
- Get customers to message you on WhatsApp
- WhatsApp and Zoho CRM: a solar installer's journey, tested
- Answer Facebook Messenger and Instagram messages in Sonar
- Integrations: WhatsApp connected to your other tools
- Developers: API and webhooks
- Switching to Sonar
- WhatsApp marketing that earns B-BBEE points
- WhatsApp RSVPs for events
- WhatsApp calls on your phone system
- Competitions and prize draws
- WhatsApp error 2388386: why can't I add another number?
- WhatsApp error 131047: why wasn't my message delivered?
- Do you need 30 days on WhatsApp before Meta business verification?
- Can I move a WhatsApp number to another Meta business portfolio?
- WhatsApp error 131042: how do I add a payment method?
- Can I use my WhatsApp in Claude or ChatGPT?
- Can I connect Sonar to Zapier, Make or Google Sheets?
- How do I send a WhatsApp broadcast without my number getting blocked?
- How can my team share one WhatsApp number and inbox?
- How do I count clicks on a link in my WhatsApp broadcast?
- How do I add a WhatsApp chat button to my website?
- Which WhatsApp API providers keep message data in South Africa?
- How do I send WhatsApp abandoned cart reminders from my Shopify store?
- Can WhatsApp calls save money on an 0800 number or VoIP line?
- What are South African businesses paying for WhatsApp replies since 1 October 2026?