# Kustomer

## Prerequisites

* A Kustomer account with admin access
* A Kustomer API key with `org.admin` and `org.permission` roles

## Setup

### Step 1: Enable Kustomer in Alhena

1. In Alhena, go to **Settings > Integrations**
2. Find **Kustomer** and click **Enable**
3. Click **Configure Settings**

### Step 2: Get Your Kustomer API Key

1. In Kustomer, go to **Settings > Security > API Keys**
2. Create a new API key with these roles:
   * `org.admin`
   * `org.permission`
3. Set the key to **never expire** (recommended)
4. Copy the key immediately (you can't view it again after closing)

### Step 3: Connect Kustomer

1. Enter your Kustomer domain and API key in Alhena
2. Click **Connect**

### Step 4: Install the Alhena App in Kustomer

1. Alhena will show a link to the Kustomer settings page
2. Follow the link and click **Install** in Kustomer

### Step 5: Configure Human Transfer

Back in Alhena, select a **Human Transfer Group** - the group that Alhena will assign tickets to when human handoff is needed.

***

## Email Tickets

Alhena can automatically reply to incoming emails in your Kustomer account. Enable the toggle in the Kustomer settings page.

{% hint style="info" %}
Alhena creates an agent called "Alhena AI Agent" in your account. Only tickets assigned to this agent receive AI replies.
{% endhint %}

### Setting Up a Business Rule

To automatically assign incoming emails to Alhena:


---

# 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://alhena.gitbook.io/docs/integrations/helpdesk/integrating-alhena-with-kustomer.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.
