# Create and send WhatsApp message templates > Create approved WhatsApp message templates in WhatsApp Manager and send them from the QwryAI Inbox A WhatsApp message template is a message you write in Meta's WhatsApp Manager and Meta approves, which your business can then send to customers outside the 24-hour conversation window. In QwryAI, you use approved templates to message one customer from the **Inbox**, many contacts at once with [WhatsApp campaigns](/docs/user-guides/chatbot/outbound-whatsapp), and customers with new Shopify orders through [WhatsApp Automations](/docs/user-guides/integrations/whatsapp-automations). WhatsApp allows free-form messages only within 24 hours of the customer's last message. After that, an approved template is the only way to start the conversation again. QwryAI supports **Utility**, **Authentication** and **Marketing** templates. Every category can be sent from the **Inbox** and from campaigns. > [card] What you can do: | /docs/user-guides/integrations/whatsapp-templates#sending-a-template-from-the-inbox | Reach a customer after their 24-hour reply window has closed, with a template Meta has already approved and variables filled in from the customer's details. ## Before you start * A WhatsApp number connected to your agent. If you haven't connected one, follow [Add an AI agent to WhatsApp](/docs/user-guides/integrations/whatsapp) first. * Access to WhatsApp Manager in Meta Business Suite for the WhatsApp Business account that owns the number. * A payment method in Meta, since Meta charges for template messages. Templates come from Meta: QwryAI doesn't create or edit them. Until a number is connected, **Outbound › WhatsApp › Templates** asks you to connect one. ![The Templates tab of Outbound WhatsApp, asking to connect WhatsApp to see the templates made in Meta, with an Open Channels button.](annotated/01-templates-tab.webp "Templates appear here once WhatsApp is connected.") ## Creating a template in WhatsApp Manager These steps happen in Meta's WhatsApp Manager. Once a number is connected, **Manage in WhatsApp Manager** on the **Templates** tab takes you there. **1. Open Message Templates** In WhatsApp Manager, open **Message Templates**. ![WhatsApp Manager with Message Templates open, listing the templates of the WhatsApp Business account.](walkthroughs/meta-message-templates.gif) **2. Create the template** Select **Create Template**. ![Selecting Create Template in WhatsApp Manager.](walkthroughs/meta-create-template.gif) **3. Choose a category** The categories are Meta's, and QwryAI shows each template with the category Meta gives it: * **Marketing**: promotions, offers and product announcements * **Utility**: order updates, account notifications and transaction confirmations * **Authentication**: verification codes and login confirmations ![Choosing Marketing, Utility or Authentication for a new template in WhatsApp Manager.](walkthroughs/meta-template-category.gif) **4. Name the template and pick a language** Enter a name and select the language. ![Entering the template name and choosing its language in WhatsApp Manager.](walkthroughs/meta-template-name.gif) **5. Write the body text** Write the body. You can include variables such as `{{1}}` and `{{2}}`, which you fill in when you send the template from QwryAI. ![Writing the template body with {{1}} and {{2}} variables and sample values in WhatsApp Manager.](walkthroughs/meta-template-body.gif) **6. Submit for review** Select **Submit for Review**. ![Selecting Submit for Review and the template showing In review in WhatsApp Manager.](walkthroughs/meta-template-submit.gif) > [!NOTE] > > Meta reviews every template before it can be used. The review usually takes a few minutes, but can take longer. A template appears in QwryAI only after Meta approves it. > [!TIP] > > To improve your chances of approval, keep the message clear and short, avoid promotional language in Utility templates, and make the purpose of the message obvious. > [!WARNING] > > Meta charges for each template message sent. Fees vary by country and template category. See Meta's WhatsApp pricing for current rates. Approved templates are listed on the **Templates** tab of **Outbound › WhatsApp**, with search, a type filter and **Use template**, which starts a campaign with that template. ![Approved templates on the Outbound WhatsApp Templates tab, with Search templates, All types and Use template on each card.](walkthroughs/outbound-templates-list.gif) ## Template examples by use case The templates below are examples to adapt, not text Meta has approved. Write your own wording, choose the category that matches the message, and submit it for review. Meta decides the final category when it reviews it. > [tab] Order update > > **Example body text** (a **Utility** template, the category for order updates): > > ```text > Hi {{1}}, your order {{2}} has shipped. Reply to this message if you have any questions about your delivery. > ``` > > * `{{1}}`: the customer's name. Map it to the **Name** customer field in the **Inbox**. > * `{{2}}`: the order number. Enter it as **Free text** when you send from the **Inbox**, or map it to **Order number** in a WhatsApp Automation. > [tab] Appointment reminder > > **Example body text:** > > ```text > Hi {{1}}, this is a reminder of your appointment on {{2}}. Reply to this message if you need to change it. > ``` > > * `{{1}}`: the customer's name, from the **Name** customer field. > * `{{2}}`: the appointment date and time. In a campaign, map it to a contact field so each customer sees their own appointment. ## Tips for writing templates * **Keep the message clear and concise,** and state what it's for. This helps approval. * **Plan your variables.** Every variable needs a value when you send; **Send** stays disabled until each one is filled. * **Header and body variables are separate.** The header and the body each number their own variables, and QwryAI lists each one as *in the header* or *in the body*. * **Add a reply path.** Ending with "Reply to this message…" invites the customer to answer, which opens the 24-hour window again so your agent can take over. ## Sending a template from the Inbox Once a template is approved, you can send it to one customer from the QwryAI **Inbox**. **1. Open the Inbox** Open your agent and select **Inbox** in the sidebar. ![The Inbox with the WhatsApp channel selected in the Channels list.](walkthroughs/inbox-whatsapp-channel.gif) **2. Open the customer's WhatsApp conversation** Select the WhatsApp conversation with the customer you want to message. ![Opening a customer's WhatsApp conversation in the Inbox.](walkthroughs/inbox-open-conversation.gif) **3. Choose a template** When the 24-hour window has closed, the reply box shows *The 24-hour reply window has closed. WhatsApp doesn't allow outbound messages after 24 hours of inactivity. Use a note to document internally, or choose a message template to send.* Select **Choose template**. ![A WhatsApp conversation showing the 24-hour reply window has closed notice with the Choose template button.](walkthroughs/inbox-window-closed.gif) The **Choose template** dialog lists the approved templates of the number this customer wrote to. Search by name with **Search...** and filter with the type select (**All types**, **Marketing**, **Utility** or **Authentication**). ![The Choose template dialog with Search..., the All types filter and template cards with a WhatsApp-style preview.](walkthroughs/inbox-choose-template.gif) **4. Fill in the variables** Select a template. Each variable is listed with where it is, for example *{{1}} in the body*. For each one, pick a source: * **Customer field**: the customer's **Name**, **Email** or **Phone**, shown with this customer's value, or *(not set)* when it's empty. * **Free text**: type a value and select **Use**. ![Filling a template's variables: {{1}} from the Name customer field and {{2}} as Free text confirmed with Use, with the preview updating.](walkthroughs/inbox-template-variables.gif) **5. Preview and send** The preview shows the message with your values. Select **Send**. To pick another template, select **Templates**. The template message appears in the conversation. If the customer replies, the 24-hour window opens again and you, or your agent, can send free-form messages. ![Selecting Send and the template message appearing in the WhatsApp conversation.](walkthroughs/inbox-template-sent.gif) > [!NOTE] > > **The 24-hour window:** WhatsApp allows free-form messages only within 24 hours of the customer's last message. After that, use an approved template. When the customer replies, the window resets. > [!WARNING] > > Add a payment method in Meta Business Suite. Without one, template messages can fail to send. ## Limitations * **Templates must be approved by Meta** before they appear in QwryAI, and they're created and edited in WhatsApp Manager only. * **Meta charges per template message,** with fees that vary by country and category. * **Free-form messages only work inside the 24-hour window.** Outside it, a template is the only way to reach the customer. * **The Inbox lists the templates of the number the customer wrote to.** A template made for another WhatsApp Business account isn't offered. ## Troubleshooting > [accordion] A template doesn't appear in QwryAI > > **Possible cause:** Meta hasn't approved it yet, or it belongs to a different WhatsApp Business account than the number. > > **Solution:** check its status in WhatsApp Manager. Once approved, it appears on the **Templates** tab and in **Choose template**. > [accordion] The message failed to send > > **Possible causes:** the contact doesn't have a valid WhatsApp number, or no payment method is set in Meta. The dialog then shows *Could not send the template.* > > **Solutions:** check the contact's WhatsApp number, and add a payment method in Meta Business Suite. > [accordion] Choose template shows Could not load WhatsApp templates. > > QwryAI couldn't read the templates from Meta, usually because the number lost its connection. Check the number's card in **Channels › WhatsApp** and select **Reconnect** if it says **Disconnected from WhatsApp**. ## Frequently asked questions > [accordion] When do I need a WhatsApp template? > > When a customer hasn't messaged you in the last 24 hours. After that, an approved template is the only way to start the conversation again. Once the customer replies, the window resets. > [accordion] Which template categories does QwryAI support? > > **Utility**, **Authentication** and **Marketing**. All three can be sent from the **Inbox** and from [WhatsApp campaigns](/docs/user-guides/chatbot/outbound-whatsapp). > [accordion] How long does Meta take to approve a template? > > Usually a few minutes, sometimes longer. A template appears in QwryAI only after Meta approves it. > [accordion] Where do I create templates? > > In WhatsApp Manager, as described in [Creating a template in WhatsApp Manager](#creating-a-template-in-whatsapp-manager). Once approved, it appears in the **Inbox**, campaigns and WhatsApp Automations. > [accordion] Do template messages cost money? > > Yes. Meta charges for each template message, with fees that vary by country and category. Add a payment method in Meta, or template messages can fail. ## Next steps > [card] WhatsApp campaigns | /docs/user-guides/chatbot/outbound-whatsapp | Send approved templates to many contacts at once. ![The Outbound WhatsApp page on the Campaigns tab with New campaign.](annotated/02-campaigns-tab.webp "Campaigns send templates to many contacts.") > [card] WhatsApp Automations | /docs/user-guides/integrations/whatsapp-automations | Send a template automatically for every new Shopify order.