# Custom button: send customers a link button in chat > Send customers a button that opens any page you choose, right inside the conversation The **Custom button** Action lets your agent show a button that opens a link when the customer asks about a specific topic. You choose the button text and the URL it opens, and the agent decides when the button is worth showing. It works on the Chat bubble, Help page and Center Stage, and the link opens in a new browser tab. **Best for:** pointing customers to a pricing page, a booking form, a downloadable guide, or any page that answers a question better than text does. **Common use cases:** * "What are your pricing plans?" * "Can I book a fitting?" * "How do I contact sales?" ## How to create the Action **1. Open Actions** In your [QwryAI dashboard](https://www.qwryai.com), select your agent and click **Build › Actions** in the sidebar. **2. Create the Action** Click **Create Action** and select the **Custom button** card ("Show a button that opens a link when your users click it"). ![The Create Action gallery with the pointer on the Custom button card.](annotated/01-card.webp "Create Action › Custom button.") The dialog shows a sample chat with a link button. Click **Start customizing**. ![The Custom button dialog with a sample chat that shows a link button, and Start customizing.](annotated/01-card--open.webp "The Custom button dialog.") **3. Configure General** **Action name:** a descriptive name, such as `Pricing_Page_Button`. The agent sees this name and uses it, together with **When to use**, to decide when to show the button. Names need 3 to 63 characters and can contain only letters, numbers, underscores and hyphens, with no spaces. ![Book_a_fitting typed in Action name.](annotated/03-name.webp "Name the button Action.") **When to use:** when the agent should show the button. Include example customer questions. ![The When to use box with instructions to show the button when the customer wants to book a fitting.](annotated/04-when.webp "Describe when to show the button.") To run the Action only as a [Procedure](/docs/user-guides/chatbot/procedures/procedures-overview) step, turn on [**Only use in Procedures**](/docs/user-guides/chatbot/actions/actions-overview#only-use-in-procedures). **When to use** is then hidden, because the agent no longer decides when to call the Action. **4. Configure the button** The button fields sit in the same **General** section. **Button Text:** the text displayed on the button. ![Book a fitting typed in Button Text.](annotated/05-text.webp "Button Text is the label customers click.") **URL:** the URL to open when the button is clicked, in a new tab. It must be a full `http://` or `https://` URL and is used exactly as entered, so you can add fixed UTM parameters, for example `https://www.example.com/pricing?utm_source=qwryai`. ![A link typed in the URL field below Button Text.](annotated/06-url.webp "URL is the page the button opens.") Click **Continue** to save the section. ![The General section, filled in, with the pointer on Continue.](annotated/07-continue.webp "Continue saves General.") **5. Choose Channels** This Action works on the **Chat bubble**, **Help page** and **Center Stage** only. Every other channel is incompatible and can't be selected. See [Channels](/docs/user-guides/chatbot/actions/actions-overview#channels) for what configured, unconfigured and incompatible mean. ![The Channels section with the channels the button can show on.](annotated/07-continue--open.webp "Channels for the button.") **6. Save and publish** Click **Save** at the bottom of the page. The Action is saved to your agent's draft, and the header shows **Publish**. Click **Publish** to make it live for customers. See [Drafts and publishing](/docs/user-guides/chatbot/drafts-and-publishing). ![The bottom of the Channels section with the pointer on Save.](annotated/08-save.webp "Save stores the Action in your draft.") > [!TIP] > > The **Preview** beside the editor and the [Playground](/docs/user-guides/chatbot/playground) use your draft. Try the Action there before you publish, to confirm the agent shows the button with the right link. ## Example A **When to use** that tells the agent both what to say and when to add the button: ```text Use this when the customer wants to book an in-store fitting or asks where to book one. Answer their question first, for example our opening hours or what a fitting includes, then show the button so they can pick a time. Example queries: 'Can I book a fitting?', 'How do I get measured?' ``` ![In the Preview chat, the customer asks to book a suit fitting before their wedding, the agent answers and shows a Book a fitting button, and clicking it opens the booking page in a new tab.](walkthroughs/custom-button-chat.gif) ## How it works * **The agent decides when to show it.** The Action has no inputs: when the agent calls it, the button appears below the reply with your **Button Text**. * **One link per Action.** The agent can call more than one Custom button Action in a reply, and each shows its own button, but whether it does depends on your instructions. * **Measure visits with UTM parameters.** The button is a plain link. Add UTM parameters to the URL and track visits in your analytics tool. ## Best practices > [card] One button, one destination | /docs/user-guides/chatbot/actions/actions-overview | Each Action carries one URL. Add a Custom button Action for each page you want to link to. > [card] Answer first, then link | /docs/user-guides/chatbot/playground | Tell the agent to answer in text and add the button as the next step, so customers aren't sent away for answers it already has. > [card] Keep button text short | /docs/user-guides/chatbot/actions/custom-button | Use a few words that name the destination, such as See pricing or Book a demo. > [card] Test before you publish | /docs/user-guides/chatbot/drafts-and-publishing | Try the Action in the Preview and confirm the button appears for the questions you expect, and not for others. ## Frequently asked questions > [accordion] Does the button open in a new tab? > > Yes. The link always opens in a new browser tab, so the customer keeps the chat open. > [accordion] Can the button URL include variables or UTM parameters? > > Fixed UTM parameters, yes: type them into the URL. The URL is used exactly as entered, so it can't include values from the conversation. > [accordion] Does the Action name matter? > > Yes. The agent sees the Action name and uses it with **When to use** to decide when to show the button, so pick a name that describes the destination, such as `Pricing_Page_Button`. > [accordion] Why don't customers see the button yet? > > Custom button saves to your draft. Click **Publish** in the top-right corner to make it live. Also check that the Action is on for the customer's channel. > [accordion] Can I show the button on WhatsApp or Messenger? > > No. Custom button works on the Chat bubble, Help page and Center Stage only. ## Next steps > [card] Suggested messages | /docs/user-guides/chatbot/actions/suggested-messages | Offer quick replies under the agent's answer. > [card] Custom actions | /docs/user-guides/chatbot/actions/custom-action | Call your own API from the chat. > [card] Widgets | /docs/developer-guides/widgets/overview | Build richer interactive cards. > [card] Drafts and publishing | /docs/user-guides/chatbot/drafts-and-publishing | Put your changes live. > [card] Actions overview | /docs/user-guides/chatbot/actions/actions-overview | See every Action you can add.