# Best Practices for Ticket Ingestion

The **Ticket Ingestion** process allows you to derive and analyze knowledge from your existing tickets.

There are few critical points to note about Ticket Learning. \
You only learn from tickets with these parameters:

* the ticket has a status=**CLOSED**
* the ticket must have **non-empty title**
* the ticket must either have a **Solution** or at least one **Comment**
* if both Solution and Comments are present, the learning algorithm only uses the Solution

The following information includes recommendations for **Ticket Ingestion**.

#### To ingest ticket data:

1. Choose the **Settings > AiseraGPT** command to open an application or bot that is integrated with a data source that contains the ticket data you want to ingest.
2. Edit the existing Data Source and make sure the **Ticket Learning** option is enabled, per the image below.

<div align="left"><figure><img src="https://3281977978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBFXjH9S1CAy9f5hzg5Q%2Fuploads%2FOXhIXjoalerj9G515zO5%2Fds_settings_in_app1.png?alt=media&#x26;token=a50581a1-bda9-4ef3-98f3-c6a239dc9150" alt="" width="563"><figcaption></figcaption></figure></div>

3. Select the Configuration tab and choose one of the following modes for data retrieval:

<div align="left"><figure><img src="https://3281977978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBFXjH9S1CAy9f5hzg5Q%2Fuploads%2FB8DhIxJVI8IQfVESH2UH%2Fticket_ingestion2.png?alt=media&#x26;token=b05846e9-359a-4b10-a3e7-33128b76756b" alt="" width="563"><figcaption></figcaption></figure></div>

* **Date Range:** each time the connector runs crawl all entities specified in its config that have been updated in the given range.
* **Incremental:** in this mode the datasource will start from the time the last execution finished and crawl all the entities specified in its config that have been updated afterwards. If it is first time it will retrieve all entities specified in its config it will find in the external system without date constraints.

Hit the **Play** button of the Data Source to kick-off ticket ingestion and wait until it finishes.
