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

# Add a Chat Now Button to PSA Ticket Emails

> Embed a Chat Now button in PSA ticket email notifications to open Thread Messenger instantly, pre-fill client details, and speed up live support responses.

This guide explains how to add a **"Chat Now"** button to your **ticket email notifications** in your PSA. The button gives clients instant access to your support team via Thread Messenger, driving faster resolutions and better engagement.

## **What the Button Does**

The **Chat Now** button:

1. Is embedded directly in ticket-related emails.
2. Opens a live support chat in the client's browser.
3. Automatically includes the client’s name, email, and company—no extra steps required.

## **Code Snippet**

Paste the following HTML code into your PSA’s ticket email template to display the chat button:

```
<p> </p>
<p style="font-family: helvetica">
  <span style="display: inline-block; text-decoration: none; color: #FFFFFF; background-color: #EB4034; padding: 12px 16px; border-radius: 4px; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; text-align: center; border: none">
    <a href="https://messenger.getthread.com?fullname=[contactfirstname]+[contactlastname]&flow=customer&email=[contactemail]&companyName=[companyname]&appId=<add your appid>¬ificationPermission=granted" 
       style="text-decoration: none; color: #FFFFFF; background-color: #EB4034; border-radius: 4px; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; text-align: center; border: none">
       Chat Now
    </a>
  </span>
</p>
<p> </p>
```

## **How It Works**

The link in the button dynamically pulls information using placeholder fields supported by your PSA:

1. `[contactfirstname]` – The client’s first name
2. `[contactlastname]` – The client’s last name
3. `[contactemail]` – The client’s email address
4. `[companyname]` – The client’s company

Make sure your PSA supports these variables. If not, update them with the correct placeholder format your system uses.

## **Where to Find Your App ID**

To make this button functional, you need to replace `<add your appid>` in the link with your actual **Thread App ID**.

Here’s how to find it:

<Steps>
  <Step title="Log in to the Thread admin panel">
    Log in to your [**Thread admin panel**](https://admin.getthread.com/).
  </Step>

  <Step title="Navigate to Messenger → Installation">
    Navigate to **Messenger → Installation**.
  </Step>

  <Step title="Locate your App ID">
    Locate your **App ID** in the installation section.
  </Step>

  <Step title="Copy it into the chat link">
    Copy and paste it into the `appId=` portion of the chat link.
  </Step>
</Steps>

## **How to Add It to Your PSA**

While every PSA is different, here's a general process for updating your email template:

<Steps>
  <Step title="Open your PSA's email template editor">
    Open your PSA's **email template editor**.
  </Step>

  <Step title="Locate the ticket updates template">
    Locate the template used for **ticket updates** or **status notifications**.
  </Step>

  <Step title="Open the HTML view">
    Open the **HTML view** (or source view) of the template.
  </Step>

  <Step title="Paste the HTML snippet">
    Paste the HTML snippet where you'd like the **Chat Now** button to appear.
  </Step>

  <Step title="Replace the App ID placeholder">
    Replace `<add your appid>` with your actual App ID.
  </Step>

  <Step title="Save and preview">
    Save and preview the template using a test ticket or contact.
  </Step>
</Steps>

## **Best Practices**

* Test how the email renders in various email clients (desktop + mobile).
* Ensure placeholder fields are correctly replaced by your PSA.
* Customize button color (`#EB4034`) to match your branding if needed.


## Related topics

- [Set Up an Autotask Email Workflow for Thread Chats](/integrations/setting-up-an-email-communication-workflow-in-autotask.md)
- [Why Thread — and what changes for you](/start-here/roles/technician/why-thread.md)
- [Enable Thread Chat & Timepad Insights in Autotask](/integrations/how-to-enable-chat-and-timepad-insights-in-autotask.md)
