# How AI handles incoming messages.

<figure><img src="/files/B1cscfF5b8Itt7vRQInL" alt=""><figcaption><p>The process of the user's message</p></figcaption></figure>

The process by which AI handles incoming messages is both structured and efficient, as depicted in the provided workflow.

1. **User Sends Message**: The process begins when a user sends a message.
2. **AI Classifies Message**: The AI system classifies the incoming message into different categories.
   * If the message is a general greeting or casual conversation (e.g., "Hi," "Hello"), the AI will automatically generate an appropriate reply.
   * If the message pertains to product inquiries, services, or business-related questions, the AI proceeds to the next step:&#x20;
     * **AI Finds Data**: For business-related messages, the AI searches relevant information within a knowledge base or database.
3. **Reply Message**: Finally, the AI generates and sends a response based on the retrieved data.

This streamlined process ensures that user inquiries are addressed promptly and accurately, enhancing the overall customer experience.


---

# 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://documents.cxgenie.ai/getting-started/knowledge-base/how-ai-handles-incoming-messages..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.
