> ## Documentation Index
> Fetch the complete documentation index at: https://docs.armin.cx/llms.txt
> Use this file to discover all available pages before exploring further.

# Contact forms

> Embed forms on your website and turn submissions into tickets.

Contact forms let website visitors create tickets in Chatarmin CX without sending an email manually.

## Requirements

Contact forms require an email channel. Set up [Email](https://docs.armin.cx/channels/email/intro.md) first, then create the form.

## Create a contact form

**1. Open contact forms**

Go to **Channels** -> **Contact forms**.

**2. Create the form**

Choose a form name, select the email channel that should receive submissions, and configure the fields.

**3. Customize the appearance**

Set the header text, colors, button style, border radius, field labels, and required fields.

**4. Embed the form**

Copy the script tag and paste it before the closing `</body>` tag on your website.

```html theme={null}
<script
  defer
  type="module"
  src="https://cx-contact-form.vercel.app/loader.js"
  data-chatarmin-loader-contact-form
  data-chatarmin-contact-form-uid="your-form-id"
></script>
```

**5. Connect AI**

Optional: choose an AI agent for the email channel so contact-form tickets can receive AI suggestions or auto-replies.

## Mount inside a specific element

Add an empty container where the form should appear, then pass a CSS selector on the loader script.

```html theme={null}
<div id="contact-form-container"></div>

<script
  defer
  type="module"
  src="https://cx-contact-form.vercel.app/loader.js"
  data-chatarmin-loader-contact-form
  data-chatarmin-contact-form-uid="your-form-id"
  data-chatarmin-contact-form-mount-selector="#contact-form-container"
></script>
```

If the selector is missing, invalid, or matches nothing, the form renders after the script tag.

## Open the form in a specific language

For a form with several languages, add `lang` with a language code to the form link, for example from each language version of your shop:

```text theme={null}
https://armin.cx/contact/your-form-id?lang=fr
```

The code must be one of the form's languages. Case and region don't matter (`FR`, `fr-FR` and `fr_FR` all open French). Without the parameter, or with a language the form doesn't offer, the form opens in its first language. Visitors can still switch languages in the form.

For an embedded form, set the language on the loader script instead:

```html theme={null}
<script
  defer
  type="module"
  src="https://cx-contact-form.vercel.app/loader.js"
  data-chatarmin-loader-contact-form
  data-chatarmin-contact-form-uid="your-form-id"
  data-chatarmin-contact-form-language="fr"
></script>
```

## Links in help texts

Put a link in a field's help text so customers can open it straight from the form, for example your returns portal:

```text theme={null}
Register your return in our [returns portal](https://example.com/returns).
```

* A plain address starting with `http://` or `https://` becomes a link. A period, comma, colon or closing parenthesis right after it is not part of the link.
* `[Text](https://…)` shows the text as a link. `mailto:` addresses work here too.
* Links open in a new tab. Other addresses, such as `javascript:` or `data:`, and all other text stay plain text, including HTML and other Markdown.

This applies to every form language, in the hosted and the embedded form.

## What happens after submission

1. The visitor fills out the form.
2. Chatarmin CX sends the submission through the configured email channel.
3. A ticket is created in the inbox.
4. AI can tag, draft, or reply based on channel settings.
5. Human agents can take over when needed.

## Features

* custom fields and file uploads (dangerous file types are rejected, see [Attachment and link security](https://docs.armin.cx/inbox/attachment-security.md))
* visual branding
* multi-language forms
* required field validation
* automatic ticket creation
* contact creation or updates
* spam protection
* optional thank-you redirects

> [!TIP]
>
> Use contact forms alongside email so customers have a guided way to contact support while your team still works from one inbox.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.