# How to create a "Call", "Send an SMS", or "Send an email" button to an In-App message?

{% hint style="info" %}
This guide is specific to Batch's Mobile Engagement Platform (More on the [difference between Batch's CEP and MEP](https://app.gitbook.com/s/UIK868wiiK9XOVyETGZS/other/faq/what-are-the-differences-between-batch-customer-engagement-platform-and-mobile-engagement-platform)).
{% endhint %}

In-App messages allow you to trigger a wide variety of actions when users click a button, including opening the default phone, SMS, or email app with a predefined phone number or email address. This can be done by using links such as :

* **tel:+00XXXXXXXXX**: opens the default phone app. Users just need to press the call button to call the phone number included in the link.
* **sms:+00XXXXXXXXX**: Creates a draft in the default SMS messaging app. Users only need to type a message and click "Send" to send an SMS to the linked phone number.
* **mailto:**[**example@domain.com**](mailto:example@domain.com): Creates a draft in the default emailing app. Users only need to type a message and click "Send" to contact the linked email address

These links are handy to improve the user experience by redirecting them to the default apps and pre-filling the phone number/email address they need to contact, instead of asking them to copy-paste a value, and then open manually their phone/messaging app.&#x20;

Here is a quick guide on how to use these links in an In-App automation or a Mobile Landing:

## Creating a "Call" button in an In-App message <a href="#h_88189175cf" id="h_88189175cf"></a>

To be able to redirect users to their phone application you must:

1. Open or create a campaign
2. Go into the advanced settings and add the following format as a deeplink of the In-App message button: `tel:+33123456789`

{% hint style="info" %}
The "**Open in app**" and "**Open in browser**" options do not affect the redirection.
{% endhint %}

<figure><img src="https://downloads.intercomcdn.com/i/o/509892375/30f20eebbd666ce45a5eae60/tel.png?expires=1744885800&#x26;signature=1a1e8c713cf6c7a94f216e6c71355504afac9a77368d5a00acf4bb0ee4629bb0&#x26;req=cSAuHsB8noZaFb4f3HP0gBlNlxAQnEylnvI6yq%2F0GVwEhXKIT52xxMy2VwNQ%0ALGjiJvVVWHILwuYmyA%3D%3D%0A" alt=""><figcaption></figcaption></figure>

Depending on their device, here is what the redirect could look like once users click the "**Contact Us**" button:

<figure><img src="https://downloads.intercomcdn.com/i/o/510011605/e1ecafeba392281157ddadcf/Group+3.png?expires=1744885800&#x26;signature=5fe8840bf3ae76c5bc45c8ca57f0d46201df5f44c3b3dc5c1f2b1f99fcb2cf96&#x26;req=cSEnFsh%2Fm4FaFb4f3HP0gPvkBzzaoN2iQpBrgIIaw1x0%2FPHTwZIFtj3lBClx%0AfK5rfypfeG6WCGs5Vw%3D%3D%0A" alt=""><figcaption></figcaption></figure>

## Creating a "Text" button in an In-App message <a href="#h_4bd4c65887" id="h_4bd4c65887"></a>

<figure><img src="https://downloads.intercomcdn.com/i/o/509949040/bf81ae129941439f5f2e2985/sms.png?expires=1744885800&#x26;signature=82a8c2039d4d40b44baa2b5425339c24fe582a9fb58cd9f0b52ac43621582314&#x26;req=cSAuH813nYVfFb4f3HP0gDg%2FHFnyIzMYdV6N30pCnYAVl%2B67q6MHtVWLeGrH%0A1NHen1%2FZQ7cCYE7%2FWw%3D%3D%0A" alt=""><figcaption></figcaption></figure>

## Creating an "Email" button in an In-App message <a href="#h_0fe78db751" id="h_0fe78db751"></a>

To be able to redirect users to their email application you must:

1. Open or create a campaign
2. Go into the advanced settings and add the following format as a deeplink of the In-App message button: `mailto:experts@batch.com`

{% hint style="info" %}
The "**Open in app**" and "**Open in browser**" options do not affect the redirection.
{% endhint %}

<figure><img src="https://downloads.intercomcdn.com/i/o/509910750/0402ac3c6f389677df8a94dd/mail.png?expires=1744885800&#x26;signature=32de10c6f13c7448bfcd3bcdb58433c08e064060379b236aa04236df38c89d37&#x26;req=cSAuH8h%2BmoRfFb4f3HP0gEh4e%2BkZCsV86dHnLPRYGIGU0z4s1pbiU2hB3w46%0Aj4b%2F1WG7hsYvOjbHiw%3D%3D%0A" alt=""><figcaption></figcaption></figure>

Depending on their device, here is what the redirect could look like once users click the "**Contact Us**" button:

<figure><img src="https://downloads.intercomcdn.com/i/o/510017634/113ea53f23c8eb96506c9ec8/Group+2.png?expires=1744885800&#x26;signature=d2155525ff3a3ef8fc76682453c7783d9902e6bf6367a822f2618f02dc85db2d&#x26;req=cSEnFsh5m4JbFb4f3HP0gNFX5%2FWhrYdGBD3Zrzl4jVbF9D4XC5vi%2F7WKqIAn%0A%2B7mc3wtMfvOBfUOSCA%3D%3D%0A" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
We recommend **adding an emoji** that clarifies the action that will follow in the CTA.

Ex: ✉️ Contact us vs 📞 Contact us
{% endhint %}


---

# 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://doc.batch.com/guides-and-best-practices/message/in-app-messaging/how-to-create-a-call-send-an-sms-or-send-an-email-button-to-an-in-app-message.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.
