# AI auto-replies Let an AI model answer when no rule or teammate has replied. It uses your OpenAI or Anthropic key. Include the hand-over instruction so the model can request a team handoff when it is unsure or a customer asks for a person. _Takes about fifteen minutes._ ## Before you start > **Read this before you switch it on** > > Once it is on, the AI replies to customers on its own, with nobody checking first. Each answer is a call to OpenAI or Anthropic on your key, and they bill you for it. Check the instructions and the knowledge base before you switch it on. > > [Open WhatsApp AI Agent](/automations/ai-agent) > **What you need** > > An owner or admin login, and an API key from OpenAI or Anthropic. Create the key in that provider’s own dashboard. ## 1. How the AI decides to reply The AI only answers a message that nothing else has answered. Keyword rules, automations and a teammate’s reply all come first. Once a rule or an automation has replied, the AI stays out of that message. The AI never answers a chat that is assigned to a teammate, and it skips contacts who have opted out. It answers only a set number of times in one chat. After that, the chat waits for a person. Wavy also has a daily limit for the whole workspace. Whether the model hands off when it is unsure or the customer asks for a person depends on the instructions it receives. Keep the hand-over line in the default instructions or add it to your custom instructions. A handoff is recorded when the model returns the handoff signal or no reply text. ## 2. Open WhatsApp AI Agent In the left menu, open Automations and choose WhatsApp AI Agent. Only owners and admins can change these settings. The top of the page shows the current state. It says Answering customers when the AI is on and ready. It says On, but missing a key or model when it is switched on but not ready. It says Off, or Off · no key saved when it is switched off. > **WhatsApp AI Agent** > > Set up the AI answers for your WhatsApp chats. > > [Open WhatsApp AI Agent](/automations/ai-agent) ## 3. Choose a provider and a model Pick OpenAI or Anthropic in the Provider box. In the Model box, type the model name exactly as your provider’s dashboard lists it. Wavy sends that name to your provider with each call, so it has to match exactly. If the Model box is empty, the page asks you to name the model before you save. ## 4. Paste your API key Create a key in your OpenAI or Anthropic dashboard. Paste it into the API key box and save. Wavy stores the key encrypted, and it never shows the key again. Once a key is saved, the box says A key is saved, with Replace key to change it. Keep the saved key leaves it as it is. Calls go to your provider on your account, so your provider bills you for them. They are not Wavy credits. > **Keep the key private** > > Do not paste the key into a customer chat or a message to your team. Anyone with the key can use your provider account. > > [Open WhatsApp AI Agent](/automations/ai-agent) ## 5. Set the reply limit and instructions Replies per chat sets how many answers the AI may give in one chat before it goes quiet. Enter a number from 1 to 20. The default is 3. In Instructions for the AI, describe your business and how the AI should talk to customers. You can write up to 4000 characters. If you leave the box empty, Wavy uses its default: answer briefly, and hand over when unsure. If you write your own instructions, include a hand-over line explaining when uncertainty or a request for a person should trigger handoff. This helps the model recognize those cases; it is not a guarantee. A separate business-scope instruction can also request handoff for out-of-scope questions. The page has an Add the hand-over line button that adds the line for you. ## 6. Add facts the AI can look up The Knowledge base card lists the documents the AI looks up before it answers questions about prices, opening hours and policies. It is the one knowledge base every agent reads, kept on the Business page: press Open the knowledge base to add web pages, short notes or your business profile there. The knowledge base guide walks through each option. > **The knowledge base** > > Add pages, notes and your business profile for the AI to look up. > > [Read the knowledge base guide](/docs/wavy/guides/ai-knowledge-base) ## 7. Switch it on and save Turn on Answer customers automatically, then press Save changes. A box asks Let the AI answer your customers? It explains that from the next message that no rule, automation or teammate answers, the AI replies on its own, with nobody checking first. Press Switch on and save to confirm. Press Keep it off to cancel. When it saves, a notice says “Saved. The AI agent is answering customers”. ## 8. Check the usage line Under the switch, the page shows a usage line such as The last N AI calls used X tokens on your key. If it says No AI calls on your key yet, the AI has not answered anyone yet. Use the line to compare with your provider’s billing page. ## 9. When the AI hands a chat over When the model returns the hand-off signal or an empty reply, Wavy routes the chat to your team and stops its automatic replies in that chat. Whether the model returns a hand-off signal for uncertainty or a request for a person depends on the instructions it receives; keep the hand-over line in place. When the chat reaches the replies-per-chat limit, the AI goes quiet without sending another reply. This page has no button to switch the AI back on for a single chat. Answer the chat yourself. To keep the AI out of one chat, assign that chat to a teammate, because the AI never answers a chat that is assigned to someone. ## 10. What you will see The AI’s replies are saved in the chat like any other reply from your number. A chat the AI has handed over waits in the inbox with nothing sent after the hand-over. The state at the top of the WhatsApp AI Agent page tells you whether the AI is answering customers right now. ## 11. When something does not work The page says On, but missing a key or model. Paste your API key and type the model name, then save. The page asks you to paste a key to switch the AI on. The AI does not reply to a customer. Check that the chat is not assigned to a teammate, that the contact has not opted out, and that no keyword rule or automation has already replied. Check that the chat has not reached the replies per chat limit. The replies are not what you expected. Change the instructions, and add the facts the AI should use to the knowledge base. ## 12. Questions people ask Do AI replies use my Wavy credits? No. Your OpenAI or Anthropic account bills them. Can I see my API key again later? No. Wavy never shows it again. You can replace it with a new key. Will the AI reply to a customer who asked to stop? No. Contacts who have opted out are skipped. Can I stop the AI for one chat? Yes. Assign the chat to a teammate. The AI never answers a chat that is assigned to someone. ## After connecting - Read the first few AI chats in your inbox, and change the instructions if the tone is wrong. - Keep your prices, opening hours and delivery policies in the knowledge base, so the AI quotes them instead of guessing. ## Next - [The knowledge base every agent reads](/docs/wavy/guides/ai-knowledge-base) - [Working the shared inbox](/docs/wavy/guides/working-the-shared-inbox) - [WhatsApp AI Agent](/automations/ai-agent) --- Status: reviewed · reviewed by codex Author: claude-haiku-5-5