> For the complete documentation index, see [llms.txt](https://docs.hackle.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hackle.io/en/crm-marketing/in-app-message-guide/create-campaign/in-app-message-template.md). Agents can also search and read this documentation through its [MCP server](https://docs.hackle.io/~gitbook/mcp).

# In-App Message Image Template

## In-App Message Layouts

Hackle currently supports Modal, Banner, and Bottom Sheet layouts.

![](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-0dc481fca6527d18b40fa726c576f83864246b30%2Fce43d1a-image_6a999e2355e32317.png?alt=media)

Below are the recommended aspect ratios and sizes for each layout.

* File format: PNG, JPG, JPEG
* File size: up to 3MB

Since the recommended image aspect ratio differs by layout, please check the ratio and size when uploading images. (When landscape orientation is selected on mobile, a separate landscape image must be uploaded.)

<table><thead><tr><th width="134.73828125">Layout</th><th>Layout Details</th><th>Recommended Size</th></tr></thead><tbody><tr><td>Modal</td><td>Image</td><td>* Portrait: 2:3 / 1200px:1800px</td></tr><tr><td>Modal</td><td>Image + Button</td><td>* Portrait: 2:3 / 1200px:1800px</td></tr><tr><td>Modal</td><td>Image + Text + Button</td><td>* Portrait: 29:10 / 1450px:500px</td></tr><tr><td>Banner</td><td>Image + Text</td><td>* Ratio: 1:1</td></tr><tr><td>Banner</td><td>Image</td><td>* Ratio: 24:7</td></tr><tr><td>Bottom Sheet</td><td>Image</td><td>* Portrait: 3:2 / 1800px:1200px</td></tr><tr><td>Bottom Sheet</td><td>Image + Button</td><td>* Portrait: 3:2 / 1800px:1200px</td></tr></tbody></table>

Build the appropriate campaign based on the effect each layout delivers!

1. Modal: Primarily used for important information or promotions that users must not miss.
2. Banner: Used when providing simple feedback or information on the page where the user is located.
3. Bottom Sheet: Primarily used when immediately displaying promotions or notices when a user enters the service.

## Notice Sample Sources

We provide samples you can use for in-app message campaigns. Download the desired image directly, or edit it in Figma and use it!

### Image + Button

![Popup example](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-209de3b21e973d6f29c3a4a168da3f0ee2ceaa1a%2Fb2c2e5a-simulation_f8118c1577b2eb47.png?alt=media)

![1200x1800](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-c4a068726d4043d4a3c9ef55c7c24be7b20401c8%2F5b41deb-1200x1800-1_11df1d8988811726.jpg?alt=media)

![1450x500](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-bb01e5ed786ace2a99e7d0114e6a7b68073d0daa%2F25c6458-1450x500-1_22d34e8f8bb00519.jpg?alt=media)

![1800x1200](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-c0f1ffd5af83c1c836f4656d75e44deeb02403fa%2F824d7e4-1800x1200_6518c5d0e76a0caa.jpg?alt=media)

### Image + Text + Button

![Popup example](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-7ddc7e67c05a8344d62ca41cd2dcd05328d69588%2F387f134-simulation_1_565c09fa395f3858.png?alt=media)

![1200x1800](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-d8a8277ef340a9e56d190e993bb43fbf268b4ff6%2Fae57844-1200x1800_f15cb2c4865af36b.jpg?alt=media)

![1450x500](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-9b7a492dc312ea20421bfa89c6c23e20b9aa7de7%2Fb79a28c-1450x500_ee6630402f529ef8.jpg?alt=media)

![1800x1200](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-0e3ec1a8148ebd1344fde3241cfd2129192217ef%2Fb616c4b-1800x1200-1_131afe94ea760e08.jpg?alt=media)

## User Survey Sample Sources

### Image + Button

![Popup example](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-35d66f2552272b1b46b5dc434a26d654c5041e71%2F4d082c2-simulation_2_508afdde093d3101.png?alt=media)

![1200x1800](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-66c7897f5e8013ac4aea2e730ae88228d5e9c1bd%2Fc3685c3-1200x1800-5_69be5ec58002a855.jpg?alt=media)

![1450x500](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-070078a5fc29efeea132f9a8ea4c87066b4637e4%2F6be2ec2-1450x500-5_6ce437b9805dc06e.jpg?alt=media)

![1800x1200](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-e528b73b7066fa366f2d852a524e0455402fadde%2Fc78d5c3-1800x1200-4_bbe337d16692be9a.jpg?alt=media)

### Image + Text + Button

![Popup example](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-d5c028204e69fa19e099fd191101047771a05160%2Fd057eee-simulation_3_1b3728672985c698.png?alt=media)

![1200x1800](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-166b539e08360c07b8d488da7b9412dd7bc0111e%2Ffa6c4eb-1200x1800-4_642b3a270c053648.jpg?alt=media)

![1450x500](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-fe018fe9419c9dc704a08d069ab4a3c915078b8d%2F8db3e6b-1450x500-4_eaedda7b46c5778b.jpg?alt=media)

![1800x1200](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-bf53e92f31e8bfebcdba3d370c0585fe16870f54%2F7af9082-1800x1200-5_98b513b039caa08d.jpg?alt=media)

## Promotion Sample Sources

### Image + Button

![Popup example](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-595d36a36a0c1b4589ea1a2c618e7062367b888e%2F9b7e35f-simulation_4_ab471c569e40c07c.png?alt=media)

![1200x1800](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-baf460f24e873ce2163ef0573aa99e7112c9652a%2Ff37932f-1200x1800-9_783a3a5be5c45caf.jpg?alt=media)

![1450x500](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-4385bdbc17007984eb9e0160e48b23e3da3fd7da%2F0a73631-1450x500-9_6548e3630a889283.jpg?alt=media)

![1800x1200](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-f4d75c8c7f77ad113ca530512339a41c0457e8e2%2F7a25c94-1800x1200-8_95012b7e087e4cf4.jpg?alt=media)

### Image + Text + Button

![Popup example](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-3b3b5212864fef83256442e20dbd26c5243678b9%2Fcae728d-simulation_6_0eb8aa0dd9e4d492.png?alt=media)

![1200x1800](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-1cf327f0c698578b91d7feac614374aacb22defb%2F3aaa4e7-1200x1800-8_45217e8441c68317.jpg?alt=media)

![1450x500](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-03f2ec59d10530eda41f202e3230e4384e6b84a0%2F4b69c6c-1450x500-8_fe1c58be28e912e5.jpg?alt=media)

![1800x1200](https://143363954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyAVlNQhS253reum0Ce94%2Fuploads%2Fgit-blob-35ba9c632b6f7105b10bd96c1152c5a63219457f%2F4a1b1fa-1800x1200-9_4248b3dc853aa312.jpg?alt=media)

## Figma

### In-App Message Example Images

{% embed url="<https://www.figma.com/embed?embed_host=share&url=https://www.figma.com/file/mo79jPwvJbqzNkdgKKS9AT/In-app-message?type=design&node-id=0%3A1&mode=design&t=2bBdpcGHa4OX6RYx-1>" %}

### Commerce In-App Message Samples

{% embed url="<https://embed.figma.com/design/mo79jPwvJbqzNkdgKKS9AT/In-app-message?embed-host=share&node-id=3997-313>" %}

### In-App Message Specifications

{% embed url="<https://embed.figma.com/design/mo79jPwvJbqzNkdgKKS9AT/In-app-message?embed-host=share&node-id=1951-337>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hackle.io/en/crm-marketing/in-app-message-guide/create-campaign/in-app-message-template.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
