> For the complete documentation index, see [llms.txt](https://documents.cxgenie.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documents.cxgenie.ai/getting-started/knowledge-base/how-ai-handles-incoming-messages..md).

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