# Custom domain

URL: https://docs.assistantcore.com/en/web-app/custom-domain

Serve an assistant's Web App from your own domain, such as chat.example.com, by adding DNS records and verifying them.

A custom domain lets people reach the Web App at your own address instead of `<subdomain>.assistantcore.com`. The default address keeps working.

## Before you start [#before-you-start]

- You are on the **Pro** plan or higher. See [Plans and pricing](/en/billing/plans-pricing).
- You have the **Assistant Owner** role on the assistant.
- You can edit DNS records for the domain.

## Add the domain [#add-the-domain]

1. In the [Admin Panel](https://admin.assistantcore.com), open the assistant and go to **Settings → Domains**.
2. In **Custom Domain**, enter the hostname, such as `chat.example.com`. Do not include `https://` or a path.
3. Under **DNS Setup**, note the record to add:
   - For a subdomain such as `chat.example.com` or `www.example.com.vn`: a `CNAME` record with the value shown.
   - For a root domain such as `example.com` or `example.com.vn`: an `A` record for `@` with the IP address shown.
4. Save the settings.
5. A verification box appears with a `TXT` record named `_assistantcore-verify.<your-domain>` and a value.

## Root domain and www [#root-domain-and-www]

Each assistant has one custom domain, and the assistant answers only on the exact hostname you enter. If you enter `example.com`, then `www.example.com` does not open the assistant, and the other way around. Pick one main address. To redirect the other address to it, contact AssistantCore support.

When you use a root domain:

- Use an `A` record. A root domain cannot have a `CNAME` record.
- Remove any `AAAA` records on the root domain.
- If the domain has `CAA` records, they must allow `letsencrypt.org` so the HTTPS certificate can be issued.
- The `A` record does not affect email (`MX`), but it replaces any website running on the root domain.

If you change to a different domain, the `TXT` value changes too and you need to verify again.

## Add the DNS records and verify [#add-the-dns-records-and-verify]

1. Check that the domain uses the nameservers of the provider where you will edit records:

   ```bash
   dig +short NS example.com
   ```

   If the result shows another provider's nameservers, records you add will have no effect. Change the nameservers at your registrar first.
2. At your DNS provider, add both records: the `CNAME` or `A` record, and the `TXT` record. Enter the `TXT` value exactly as shown. Only if your provider reports an error such as "must contain a quoted string" (common in PowerDNS-based panels such as Vietnix), wrap the value in double quotes: `"value"`.
3. Wait for DNS to update. This can take from minutes to a few hours. To check the `TXT` record:

   ```bash
   dig +short TXT _assistantcore-verify.chat.example.com
   ```
4. In **Settings → Domains**, select **Check DNS**.

When it succeeds, the box shows **Domain verified**. Until then, the domain shows "Not verified" and does not serve visitors. After verification, the domain serves over HTTPS once the platform has connected it, which can take some time. If the domain is verified but still does not open, contact AssistantCore support.

<Callout type="info">
Sign-in still happens on the assistant's `assistantcore.com` subdomain. Signing in on your custom domain redirects there.
</Callout>

## Troubleshooting [#troubleshooting]

<Accordions>
<Accordion title="The Custom Domain field is locked">
The field shows a **Pro** badge when your plan does not include custom domains. Upgrade to Pro or higher to unlock it.
</Accordion>

<Accordion title="The domain stopped opening the assistant">
A custom domain works while the assistant owner's plan includes custom domains. If the plan ended, the domain stops within a few minutes and the `assistantcore.com` address keeps working. Renew the plan and the domain comes back by itself; you do not need to verify it again.
</Accordion>

<Accordion title="Could not verify the domain">
Check that the `TXT` record name and value match exactly, then wait longer for DNS to update and select **Check DNS** again.
</Accordion>

<Accordion title="Records were added but DNS does not change">
The domain may use another provider's nameservers. Run `dig +short NS <your-domain>` and compare it with the provider where you edited the records. If they differ, change the nameservers at your registrar, or add the records where the nameservers point.
</Accordion>

<Accordion title="The provider says the TXT record must be quoted">
Some DNS panels (such as Vietnix) require the `TXT` value in double quotes. Enter `"value"`. The quotes are not part of the value, so verification still matches.
</Accordion>

<Accordion title="Platform domains cannot be used">
You cannot use an `assistantcore.com` address as a custom domain. Use a domain you own.
</Accordion>
</Accordions>

The logo and brand color are in **Settings → Appearance** and need the Enterprise plan.