# QR Code Action

This action will generate a dynamic QR Code, based on the supplied data, to be displayed in the user chat. You can show the QR Code as an external URL or as an image.

<figure><img src="https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGYwUmVjfELEiJzfmWLC%2Fuploads%2FOstJcBMDbC20JmEjw0gL%2Fimage.png?alt=media&#x26;token=f01d00b2-7237-47a5-a4a0-d74ff74c9cfd" alt=""><figcaption></figcaption></figure>

### Settings

According to the selected **Type** the required settings above change.

The action uses the following settings:

<table data-header-hidden><thead><tr><th>Setting</th><th>Description</th><th></th><th width="100">Parsed</th></tr></thead><tbody><tr><td>Setting</td><td>Description</td><td>Type</td><td><a href="../dynamic-parsing">Parsed</a></td></tr><tr><td>Type</td><td>Determines what kind of data the QR code contains and how that data should be interpreted or acted upon by the scanning device</td><td></td><td><span data-gb-custom-inline data-tag="emoji" data-code="26d4">⛔</span> </td></tr><tr><td>Generate Image Content</td><td>If allowed by channel, Xenioo will try to embed the image in the chat. Otherwise Xenioo will store the URL into the variable "qr_image_url"</td><td></td><td><span data-gb-custom-inline data-tag="emoji" data-code="26d4">⛔</span> </td></tr><tr><td>Text</td><td>Maxlength: 1000</td><td>Text, Event</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>Name</td><td>Maxlength: 100</td><td>vCard</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>Telephone Number</td><td>Maxlength: 20</td><td>vCard, SMS, Whatsapp</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>Email</td><td>Maxlength: 254</td><td>vCard, Email</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>SSID</td><td>Maxlength: 32</td><td>Wifi</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>Password</td><td>Maxlength: 100</td><td>Wifi</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>Message</td><td>Maxlength: 100</td><td>Whatsapp</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>Summary</td><td>Maxlength: 75</td><td>Event</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>Start Date and Time</td><td></td><td>Event</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>End Date and Time</td><td></td><td>Event</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr><tr><td>Location</td><td>Maxlength: 75</td><td>Event</td><td><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span></td></tr></tbody></table>

### Remarks

According on the selected Type the other settings are going to have different **length limits** in order to fit the QR Code, the length is limited by the form.

### Trigger

This action has no triggers.

### Variables

This action produces the following variables after being triggered:

| Variable       | Description                                                                                     |
| -------------- | ----------------------------------------------------------------------------------------------- |
| qr\_image\_url | If "Generate Image Content" setting is checked the external URL will be saved in this variable. |

### Availability

Channel specific availability follows the table below:

| Channel          | Availability                                                                                                                |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Facebook         | Images will be by default embedded as attachments. Facebook 25MB limit will apply.                                          |
| WhatsApp         | Provider Dependant. Please see [relevant information](https://docs.xenioo.com/basic-concepts/publishing/channels/whatsapp). |
| Telegram         | Fully Available                                                                                                             |
| Web              | Fully Available                                                                                                             |
| Alexa            | Available only on Screen enabled devices. Other devices will ignore the content.                                            |
| Google Assistant | Available only on Screen enabled devices. Other devices will ignore the content.                                            |
| Slack            | Fully Available                                                                                                             |
| API              | Fully Available                                                                                                             |

This action can also be used as child of other actions. (Operation)
