> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chatsyncs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook on Button Click in ChatSyncs

> How to fire a webhook when a customer clicks a specific button in a Keyword Replies flow, using the Send data to Webhook URL field on that Button block.

Fire a webhook when a customer clicks a specific button in a flow built following
[How to Create a Keyword-Based WhatsApp Chatbot](/learn/chatsyncs-automation/create-a-keyword-based-whatsapp-chatbot-in-chatsyncs) — track button interactions, trigger an
external action, or sync data the moment a customer makes a choice.

<Frame>
  <img src="https://mintcdn.com/chatsyncs/sAsjFfzcUITpKpey/images/learn/webhook-button-click/step-01-send-data-to-webhook-url.png?fit=max&auto=format&n=sAsjFfzcUITpKpey&q=85&s=34787a921a2eeceb0b215f64f58db85b" alt="Configure Button panel with the Send data to Webhook URL field boxed, below Assign Conversation to a group/user and above Send data to Google Sheets and Send data to Google Calendar" width="1872" height="821" data-path="images/learn/webhook-button-click/step-01-send-data-to-webhook-url.png" />
</Frame>

<Steps>
  <Step title="Open a button's settings">
    In your bot flow, click a **Button** component (inside an Interactive Message) to open
    **Configure Button**.
  </Step>

  <Step title="Find Send data to Webhook URL">
    Scroll down past **Assign Conversation to a group/user**.
  </Step>

  <Step title="Enter the webhook URL">
    Paste your webhook endpoint URL. Every time a customer taps this specific button, ChatSyncs
    POSTs the subscriber's data to that URL.
  </Step>

  <Step title="Save Changes">
    Click **Save Changes**.
  </Step>
</Steps>

Each button in a flow has its own **Send data to Webhook URL** field, so different buttons can
trigger different external systems:

**Example:** In a university admissions bot, the **Admissions** button sends data to an
admissions CRM webhook, while a separate **Courses** button sends data to a course-catalog
webhook — each fires independently based on which button the customer actually taps.

<Tip>
  The same panel also has **Send data to Google Sheets** and **Send data to Google Calendar** —
  you're not limited to a webhook alone.
</Tip>

## Frequently asked

<AccordionGroup>
  <Accordion title="Can different buttons in the same flow send data to different webhooks?">
    Yes — **Send data to Webhook URL** is set per button, so each one can point at a different
    endpoint.
  </Accordion>

  <Accordion title="What data does the webhook receive?">
    The subscriber's data at the moment of the click, the same way a [Keyword Trigger
    webhook](/learn/chatsyncs-webhooks/webhook-on-keyword-trigger-in-chatsyncs) sends subscriber data on a keyword match.
  </Accordion>

  <Accordion title="Is this different from the keyword-level webhook on Start Bot Flow?">
    Yes — [Webhook on Keyword Trigger](/learn/chatsyncs-webhooks/webhook-on-keyword-trigger-in-chatsyncs) fires when the flow's
    trigger keyword matches. This one fires later, only when a specific button inside that flow
    is actually clicked.
  </Accordion>
</AccordionGroup>
