# Format Mobile Number Trigger in DoubleTick Bot Studio

### What Is the Format Mobile Number Trigger?

The **Format Mobile Number** feature in DoubleTick is a **trigger available inside Bot Studio** that helps you automatically **clean and standardize phone numbers** before a bot journey continues.

In simple terms:\
This trigger ensures that the phone number entering your bot flow is **converted into a valid WhatsApp-ready format**, so your automation works smoothly without message failures.

***

### Why Does This Trigger Exist?

Phone numbers can come from many sources:

* Website forms
* CRM tools
* APIs or webhooks
* Manual uploads

These numbers are often **not formatted correctly** for WhatsApp.

For example:

* `9876543210`
* `91 9876543210`
* `+91-98765-43210`

WhatsApp requires phone numbers in a **strict international format**, like:

* `+919876543210`

If the number is not formatted correctly:

* Messages may fail to send
* Templates may not deliver
* Bot journeys may break

The **Format Mobile Number trigger fixes this automatically** before the journey moves forward.

***

### Where Do You Find This Trigger?

You can find **Format Mobile Number** inside **DoubleTick Bot Studio**.

Steps:

1. Log in to your DoubleTick dashboard
2. Go to **Bot Studio**
3. Open an existing bot or create a new one
4. In the **Triggers section**, select **Format Mobile Number**

This trigger runs **at the start of a bot journey**.

***

### How Does the Format Mobile Number Trigger Work?

When this trigger is used:

1. DoubleTick receives a phone number (for example, from a webhook or form)
2. The trigger:
   * Removes extra characters (spaces, dashes, symbols)
   * Adds the correct country code
3. The output is a **clean, WhatsApp-compatible number**
4. The bot journey continues using this formatted number

This ensures all next steps—messages, templates, or assignments—work correctly.

***

### Simple Real-Life Use Case

<figure><img src="/files/nOGD6zZAFjXY4EkxMvmG" alt=""><figcaption></figcaption></figure>

#### Scenario: Website Lead Automation

* A user submits their phone number on your website
* The number enters DoubleTick through a webhook
* You want to send them a WhatsApp message automatically

#### Without This Trigger:

* The number may be invalid
* WhatsApp message may fail

#### With Format Mobile Number Trigger:

* The number is cleaned and corrected
* WhatsApp message is delivered successfully
* Bot journey continues without errors

***

### When Should You Use This Trigger?

You should use the **Format Mobile Number trigger** when:

* Phone numbers are coming from **outside WhatsApp**
* You are using **webhooks or APIs**
* You are triggering bots using **external data**
* You handle **international phone numbers**

If the conversation is **not directly started by a WhatsApp message**, this trigger is strongly recommended.

***

### Key Benefits

* ✅ Ensures correct WhatsApp number format
* ✅ Prevents message delivery failures
* ✅ Improves bot reliability
* ✅ Works seamlessly with templates and outbound messages
* ✅ Reduces manual troubleshooting

***

### Important Things to Remember

* Always choose the **correct country code**
* Use this trigger **before sending messages**
* Especially useful for webhook-based bot journeys
* One small trigger can save multiple message failures

***

### Summary

The **Format Mobile Number trigger** is a foundational step in building reliable WhatsApp automation in DoubleTick.

It ensures:

* Phone numbers are valid
* Bots run smoothly
* Messages are delivered successfully

Think of it as:

> “DoubleTick’s safety check before starting a WhatsApp conversation.”


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.doubletick.io/bot-studio/actions/data-and-apis/format-mobile-number-trigger-in-doubletick-bot-studio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
