# Send Message Popup

## Overview

![](/files/sevVUYDBXkWUhzTwJGoT)

This popup is helpful for the following uses cases:

* To send a message to a User
* To send a message to a company
* To request more information about a product or other unique thing
* To begin a customer support chat
* To display a form with any image elements at the top

{% hint style="info" %}
If you are displaying a product within this popup, it's best to change the roundness on the profile picture from 360px to 12px so that the product image isn't cropped.&#x20;
{% endhint %}

## Structure

* This popup contains two inner groups, which are shown conditionally based on the **var - step** value. The var - step value is 1 by default and changes to 2 after the user clicks Button Send Message element to show the confirmation UI.&#x20;
  * **Group Contact user - step 1**
    * This group contains the User profile and form elements to send a message
  * **Group Contact user - step 2**
    * This group shows a confirmation message that the message was successfully sent.
* Clicking on **Group close (send message)** or **Button Cancel** will close the popup.

## How to set up

* Add a display data action that changes the data source of the **Popup Send message** to be the just-clicked User.&#x20;
  * By default, the data source is set to "Do a Search for Users: first item".&#x20;
* In that same workflow, make sure the **var - step** value is set to **1.**
  * This ensures that the **Group Contact user** **- step 1** element is visible each time the popup is opened.&#x20;
* Add any other inputs that your form will need.&#x20;
* Hide or delete any inputs that may not be needed.


---

# 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://docs.airdev.co/canvas/4.2/canvas-library/popups/send-message-popup.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.
