# Set up an Opt-in Flow

> Create a no-appointment Opt-in Flow started by TextForm or a webhook.

## Before you start

Select an account whose subscription includes Opt-in Flows and confirm that **Opt-in flows** is available under **Workflows**. You need **Workflows** access and either TextForm on your website or a source service that can send a JSON POST containing a lead's international phone number. Use a controlled test lead: a live request can start automation, send real messages and incur usage charges.

An Opt-in Flow is a separate, no-appointment workflow. It starts when a lead texts you from TextForm or when an incoming webhook identifies a lead; it does not use an appointment calendar as its entry point.

## Create the flow

1. Open **Workflows** and choose **Opt-in flows**.
2. Choose **Create opt-in flow**.

   ![Workflows page with the Opt-in flows tab and the Create opt-in flow button highlighted](https://app.showboss.ai/help/shots/opt-in-flows-create-light.webp)

3. In the **Create workflow** dialog, choose **Create blank workflow**.

![Create workflow dialog with the Create blank workflow button highlighted](https://app.showboss.ai/help/shots/opt-in-flows-create-blank-light.webp)

The editor opens a new blank Opt-in Flow. This path has no template selection.

### The Opt-in flows popup

Opening the **Opt-in flows** tab shows an **Opt-in flows** popup each time, until you tick **Don't show this again** and choose **Got it**. It shows:

- How it works: **Lead opts in**, **Workflow texts them**, **They book a call**.
- **The lead texts you**: with TextForm on your site.
- **You send the lead in**: sent by webhook from your form or CRM. When a lead starts a published flow with a customer **Message** step, your plan's entry charge applies. Part of it can come back as a usage credit when the lead sends a qualifying reply; the amount depends on your plan, and some plans have none. Opting out with STOP doesn't qualify. See [Review billing and usage](#review-billing-and-usage).
- **Banned: these get your account closed**: cold outbound and uploaded lead lists.

For scheduling and quiet-time hours, ShowBoss uses the lead's valid known timezone, or a timezone inferred from their phone number when allowed. If neither is available, it uses your organization's valid timezone, then UTC if the organization timezone is missing or invalid. A valid phone number is not skipped just because its timezone is unknown. Using a fallback does not change the lead's saved timezone, so quiet-time hours may differ from the lead's actual local time.

If your plan includes the option, use **Quiet time** in the Start controls to turn on **No quiet time**. This removes general quiet hours for new runs, but a selected **Time of day** Wait window still applies. **Instant execution** only removes the startup wait; it does not override that window. Your configured quiet-time hours are preserved for later use if you turn the option off. Save and publish the flow before testing it.

Use **Flow settings** > **Allow repeat entry** to choose whether the same lead can start this Opt-in Flow again after an earlier run. The setting is on by default, preserving the normal behavior. When it is off, the first entry is allowed and later distinct TextForm or webhook triggers are skipped without creating a conversation, sending messages, or charging usage. Retrying the same webhook event returns its original result.

Choose **Settings** in **Flow settings** to control reply handling. **Pause on questions** pauses the flow when a reply contains a question, while **Pause on any reply** pauses for every inbound reply. Opt-in Flows do not show the appointment-only **Pause on reschedule requests** toggle. The same dialog shows the randomized **Start delay**; keep the recommended 7–18 minutes unless you have a measured reason to change it.

Accepted opt-out and explicit channel requests are honored even after a reply deadline or when automation is paused, ended, or absent. A requested channel must be available before a switch can succeed; recording the preference does not restart automation or bypass a pause. See [Understand channel delivery](https://app.showboss.ai/help/use-the-inbox#understand-channel-delivery).

## Set up the triggers

A trigger is how leads enter the flow. Select **Start** in the editor. Under **Triggers**, both are always listed, each switched off until you set it up:

- **Webhook**: another app sends each new lead to a URL.
- **TextForm**: leads text you from a button on your website.

Choose **Edit** (the pencil) or turn on a trigger's switch to set it up. Once it is set up, its switch turns it on or off. A flow can use both.

![Start panel of an Opt-in Flow listing the Webhook and TextForm triggers](https://app.showboss.ai/help/shots/opt-in-flows-triggers-light.webp)

### Set up TextForm

TextForm is the text button on your website. No appointment or webhook is required. Before you can set it up:

1. Publish the workflow.
2. Choose a Persona in **Flow settings**.
3. If you chose the Persona after publishing, publish the workflow again.

Until then, TextForm's switch and **Edit** are greyed out, and the step still needed shows under it. Then choose **Edit** or turn on its switch, and follow [Set up TextForm for an Opt-in Flow](https://app.showboss.ai/help/message-us-opt-in). While TextForm is off, leads can't start this flow from your website button or by texting its message.

## Set up the webhook

The first time you choose **Edit** or turn on the switch beside **Webhook**, ShowBoss creates the webhook and opens **Set up the webhook** in three steps. Choose **Edit** to reopen it later.

1. **URL.** Choose **Copy** beside **URL** and paste it into the service that sends leads. When you reopen the setup, the URL is masked; **Copy** still copies the full URL. Keep it private because it lets anyone submit leads. Choose **Next**.

   ![Webhook setup, URL step, with the Copy button and Next highlighted](https://app.showboss.ai/help/shots/opt-in-flows-webhook-url-light.webp)

2. **Listen for data.** Choose **Listen for sample data**, then send a controlled test lead from your source service. When **Sample received** appears, choose **Next**.
3. **Map lead details.** ShowBoss fills in each detail it can match by name; check each one, then choose **Save**.

To replace the URL, choose **New URL** beside it in step 1, then **Get new URL**. The old URL stops working right away.

### Map lead details

1. For **Phone number**, choose the webhook value with the lead's number, including its country code. It is required.
2. Choose values for **Name**, **Email** and **Timezone** if the webhook sends them, or leave **Not used**.
3. Under **Also use in messages**, tick any other value you want to use in messages. Numeric values stay numbers. For a numeric value sent as text, choose **Number** in its variable type picker to compare it numerically in a **Condition** step. Lead details such as **Phone number** still use text values.

Each detail shows the variable to use in messages, such as `{{contact.phone}}`. A ticked value shows its own variable, such as `{{webhook.utm.source}}`.

If step 3 shows **Variables from this webhook** instead, send JSON containing `phone` in full international format. `name`, `event_id` and `variables` are optional, and the list shows each variable the sample sent.

### Turn the webhook on or off

The switch beside **Webhook** turns it on or off. Off keeps the webhook and its URL, but leads sent to it no longer start the flow. The webhook can't be deleted.

- Requests sent while it is off still appear in **Webhook history** as **Skipped**, with no lead.
- After you turn it back on, resending an event with the same `Idempotency-Key` header or `event_id` returns that original result and starts no lead.
- The same body sent again without either is recognized only within 24 hours of the first request. After that, it starts a new lead.

While a change is saving, the switch shows neither on nor off. If ShowBoss can't confirm the change, the switch shows **Not confirmed** until it can read the saved state, usually within a minute. If the on/off state can't be read at all, the switch shows **Unavailable** and can't be used until it can.

While the webhook is on, a pill beside **Webhook** shows its state:

- **Listening**: waiting for a sample.
- **Needs attention**: the sample couldn't be read.
- **Data not mapped**: a new sample has fields that aren't mapped yet. Your next publish is blocked until you map them in **Map lead details**. Leads keep using the mapping that is already published.
- **Ready**: set up.

### Review webhook history

Beside **Webhook**, select the eye (**Webhook history**) to open its history in a popup. Each line is one request that reached this flow's URL, newest first, with its status and the time ShowBoss received it. Select a line to see the reason and its lead, Persona and run.

| Status              | Meaning                                                                                                                                  |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| **Started**         | This request started a run.                                                                                                              |
| **Skipped**         | The request was recognized, but no run started; the reason explains why, for example the webhook is off, repeat entry is off or the phone number is invalid. |
| **Replayed**        | The request repeated an event ShowBoss had already processed. The entry shows the original result. No new run or charge.                 |
| **Rejected**        | ShowBoss refused the request, for example because the lead already had an active run in this flow. No run started.                    |
| **Processing**      | ShowBoss has not finished deciding yet.                                                                                                  |
| **Failed**          | Processing failed and its changes were rolled back. This request started no run.                                                         |
| **Outcome unknown** | Processing was interrupted and ShowBoss can't confirm whether a run started. Check Lead History before sending the request again.        |
| **Sample captured** | A sample sent while listening. It never triggers automation.                                                                             |

When a request was rejected because of an active run, the line names that run's lead and status from Lead History. Choose **Show blocking run** to highlight it on the canvas. If the run is no longer in Lead History, the line says **Not available in Lead History** and stays in the list. Choose **Only this lead** to show one lead's webhooks, **Show all** to clear the filter, and **Load more** to page further back. If the list says it expired, choose **Start from newest**.

Requests are recorded after ShowBoss admits the request and verifies the URL. Requests refused before that, such as an unknown URL, a rate limit or a global size limit, don't appear. Entries are kept 30 days. Each retry is its own entry. A retry can still start a run, for example after a blocking run has finished; only a **Replayed** entry confirms that no new run or charge occurred.

If your server can't list requests yet, the history shows the result of each webhook event instead. An event missing from that list is not proof that no request arrived.

### Review TextForm history

After you set up **TextForm**, select the eye (**Message Us history**) beside it under **Triggers**. The list shows start requests newest first with their outcome and the time ShowBoss received them. If ShowBoss skipped a request because the lead's phone number is in a blocked country, the row shows **Skipped** and explains the reason. **No outcome** means ShowBoss has yet to record a final result for the request.

Choose **Load more** for older requests. If the list expires, choose **Start from newest**.

---

## Add messages and publish

1. Choose **Add action** > **Message**, enter text under **Message** and choose a sender Persona using the Persona control.
2. Save the draft and confirm **Save** is gone from the top bar.
3. Choose **Publish**, resolve any displayed validation or setup blockers, then review and confirm **Publish**.
4. Confirm **Published** before sending live leads to the webhook. No calendar entry point is required.

Send a controlled live request and check its conversation in **Inbox**. A sample capture or generated URL alone does not prove that live automation ran.

---

## Review billing and usage

An Opt-in Flow has a separate, plan-defined conversation entry charge. It applies when a lead starts a published flow containing a reachable customer **Message** step. A notification-only flow without a customer Message does not incur that entry charge or receive its refund.

Included usage covers an eligible entry charge only when enough allowance remains for the entire amount; otherwise purchased **Wallet** balance pays it in full. They do not combine to pay one charge.

A qualifying lead reply or added reaction in the **original opt-in conversation** can trigger a one-time usage credit. Incoming reactions are interpreted with the exact message they target, rather than counting every added reaction as engagement. An explicit opt-out does not qualify. A reply in a different conversation, including a later appointment conversation, does not qualify for this credit.

A technical interpretation failure or missing, deleted, inaccessible, or incomplete reaction target content does not automatically earn a credit. Successfully interpreting a reply as uncertain is different: it retains the existing qualifying-credit treatment even when automation needs to pause. A later distinct, accepted qualifying reply or reaction in the original conversation can still earn the existing one-time credit. It does not restart ended automation or make the earlier failed input qualify. Without a later qualifying input, no credit is promised.

The credit amount is set by your plan when the flow starts. It can reduce the entry charge but cannot exceed it; a refund amount is not guaranteed for every plan. Wallet-funded charges credit the Wallet. Allowance-funded charges credit the allowance period active when the refund occurs and follow that period's reset. This is a ShowBoss usage credit, not a refund to a payment card.

Review the original conversation in **Inbox** and check **Wallet history** in **Wallet** for the applied charge and credit.

## Check your result

Confirm your TextForm or Webhook trigger is set up and switched on, the flow is **Published**, and the controlled live lead's conversation appears in **Inbox** with the expected activity. Review **Wallet** for the entry charge and any later qualifying credit.

---

## Troubleshooting

### **Opt-in flows** is not available

Check the selected account and confirm that it has Opt-in Flow access. If the tab is unavailable, ask an account owner or administrator to review feature access.

### The sample request is still waiting

Start listening before sending the controlled JSON POST, and confirm your source uses the current URL. For fixed-format requests, include `phone`; with **Map lead details**, choose the correct webhook value for **Phone number**.

### The sample request failed

Read the error under the webhook, correct the request, and listen for a sample again using a controlled test lead.

### A live request did not start the flow

Check that the **Webhook** switch is on. A red **Data not mapped** pill doesn't stop leads: it blocks your next publish, and leads use the published mapping. Then open **Webhook history** (the eye beside **Webhook**) and read the request's status and reason, as described in [Review webhook history](#review-webhook-history). A **Rejected** entry with a blocking run means the lead already had an active run in this flow; let that run finish or stop it in **Inbox** before sending again. If the request is not listed, confirm the source used the current trigger URL and was not rate limited; those refusals are not recorded.

### I see a setup or readiness message

Follow each requirement shown in the editor and save the changes. A generated URL or captured sample alone does not prove readiness for live traffic.

### I cannot reconcile a charge or refund

Open **Wallet** and review **Wallet history**, then compare it with the conversation's displayed state. Use the amounts and funding source shown there.

---

## Next step

After the flow is ready, open [Use the Inbox](https://app.showboss.ai/help/use-the-inbox) to review incoming conversations and replies. Use [Manage existing workflows](https://app.showboss.ai/help/manage-showflows) when you need to edit, publish, duplicate, or organize the flow.

---

Source: https://app.showboss.ai/help/opt-in-flows (last verified 2026-11-22)
