You can integrate a CRM with Contact Center AI Platform (CCAI Platform) to create and update records,
also known as cases or tickets.

As an administrator, you can configure and control aspects of record creation on the
**CRM Record Creation Details** pane of the CCAI Platform portal. You can find the **CRM
Record Creation Details** pane by clicking **Settings** \> **Operation
Management**.

## CRM record creation details

The **Append call or chat session to latest open \[CRM Record\] in the same leaf
queue**: Select this option and CCAI Platform will append sessions to
an existing open record if it came in from the same exact queue ("leaf queue).

Salesforce: by default, this applies when a Case/Account/Opportunity is
in **New** , **Working** , **Escalated**, or another non-closed status.

Secondary option to append to a closed case within a configurable duration.
Click to enable and enter the number of days the case can be closed but still
have a new session appended.

![](https://docs.cloud.google.com/static/contact-center/ccai-platform/docs/images/1632c99ccb856a.jpg)

After appending the session, the case status is changed to default the
open status.

**Delay call record until call is connected:** Standard record creation
takes place when the call is *assigned* . When this setting is enabled,
record creation takes place when the call is *connected* to an agent,
after it has been assigned. Enabling this feature covers the edge case
where callers abandon the call after the call has been assigned to an
agent but before the call is connected to the agent. When this setting
is combined with the abandoned call setting, only calls that are
connected to an agent will trigger record creation.

Because record creation normally occurs when the call is assigned, ticket or
case creation will appear to be delayed 5-10 seconds. Such a change should be
communicated to agents.

**Delay chat case creation until chat has a minimum of ___ messages
sent by consumer**: By default, records are created when a chat is
assigned to an Agent, then the chat is connected to an Agent. If the
consumer doesn't send messages, empty records are created. Enabling
this option:

Delays record creation until the consumer sends the set number of
messages, preventing empty records.

Record pop for the Agent in the CRM is delayed 5-10 seconds after the set number
of messages are received. Such change should be communicated to agents.

**Create CRM tickets for abandoned calls**: Creates a new CRM record
even if the caller abandons a call before reaching an agent. This is
recommended if you would like to report on "who" abandoned the call
since CCAI Platform does not store specific caller information.

**Create CRM tickets for abandoned chats**

- **When disabled** : Tickets are not created for abandoned or short
  abandoned chats. Short abandoned chats are based on the [short
  abandon setting](https://docs.cloud.google.com/contact-center/ccai-platform/docs/amandon) for chats.

- **When enabled**: Two options appear:

- **All abandoned chats**: Tickets will be created for short abandoned
  and abandoned chats.

- **Abandoned chats with a minimum of ____ messages sent by user**: Tickets
  will only be created for abandoned chats with the set number of chat
  messages.

> [!NOTE]
> **Note:** Abandoned chats are defined as chats that are ended or canceled by the consumer prior to the chat getting connected with an agent. Consumer clicks on "End chat."

## CRM record title

To customize the title of your records (tickets/cases), adjust the text
in this section.

Customization variables can be included in the title and will pull in
available information:

### CALL_TYPE

- IVR Call

- Incoming Call (App)

- Incoming Call (Web)

- Voice Scheduled (App)

- Scheduled Call (Web)

- Outbound Call

### CALL_ID

: CCAI Platform Call ID value

### MENU_PATH

: Menu end-user selected

### PHONE_NUMBER

: Phone number dialed

### LANGUAGE

: Language selected or routed to based on dialed number
and associated DAP.

### TIMESTAMP

: Time session started

## CRM record tags

Along with the configured record titles, you can add tags with the session
type name to CRM records. It will allow you to sort between different
session types by how records are tagged. CRM record tags are available
for Zendesk, Kustomer, and Freshdesk.

### Examples for how each CRM applies the session types as tags

- Zendesk: Voice Inbound (IVR) → voice_inbound_ivr

- Kustomer: Voice Inbound (IVR) → Voice Inbound - IVR

- Freshdesk: Messaging Inbound (Web Chat) → Messaging Inbound (Web
  Chat)

### Configuration options

- **Add session type tags to cases**: Add a tag to the record with the
  session type, for example, Scheduled Call (Web) or Incoming Call
  (App).

- **Add CCAI Platform tag to cases**: Adds the tag "UJET" to all
  cases created by the CCAI Platform integration.