# 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.

![](https://aisera.gitbook.io/aisera-product-documentation/05T7Y6PhrzglAXbQzVA8/~gitbook/image?url=https%3A%2F%2F3281977978-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FvBFXjH9S1CAy9f5hzg5Q%252Fuploads%252FOXhIXjoalerj9G515zO5%252Fds_settings_in_app1.png%3Falt%3Dmedia%26token%3Da50581a1-bda9-4ef3-98f3-c6a239dc9150\&width=768\&dpr=4\&quality=100\&sign=c2a60793\&sv=2)

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

![](https://aisera.gitbook.io/aisera-product-documentation/05T7Y6PhrzglAXbQzVA8/~gitbook/image?url=https%3A%2F%2F3281977978-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FvBFXjH9S1CAy9f5hzg5Q%252Fuploads%252FB8DhIxJVI8IQfVESH2UH%252Fticket_ingestion2.png%3Falt%3Dmedia%26token%3Db05846e9-359a-4b10-a3e7-33128b76756b\&width=768\&dpr=4\&quality=100\&sign=5f793d2d\&sv=2)

* **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.


---

# 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://docs.aisera.com/workflow-best-practices/best-practices-for-ticket-ingestion.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.
