# Real-Time Feedback-to-Action AI Agent

John, an eCommerce Manager, is seeking to enhance his business processes through the use of generative AI models. Specifically, he aims to automate the feedback loop, ensuring that any negative customer feedback received on his webshop is addressed within a minute. \
\
With the help of Real-Time Feedback-to-Action AI Agent developed by [Texti.ai](https://www.texti.ai/), John can successfully close this feedback loop instantaneously. Previously, there was a BI dashboard that provided insights, but unfortunately, these feedbacks never became actionable items, leading to unhappy customer experiences and increasing the churn rate.<br>

<figure><img src="/files/8DSH4UzHRbW2DrL6tBUA" alt=""><figcaption><p>Texti's AI Agent</p></figcaption></figure>

The AI Agent shown in the image above involves the following steps:

1. The AI Agent reads customer feedback submitted to the webshop when it is called using a REST API connector to this agent running independently.
2. The prompt runs through following fine-tuned, customized models trained on the business-specific training data -&#x20;
   * [x] The sentiment classification model processes the feedback to determine its sentiment. If the sentiment of the incoming feedback is 'Negative', then it is passed on to the next model. If the sentiment is not negative, the process stops for that piece of feedback.
   * [x] The feedback classification model receives the feedback with negative sentiment and performs multi-label classification to identify specific issues, categorizing the feedback into topics such as 'Delivery Delay' and 'Packaging Issue'.
3. Once the negative sentiment and specific issues are identified, the AI Agent performs two actions simultaneously:&#x20;
   * [x] Sends an email to John's team, alerting them of the customer issue and urging immediate action.
   * [x] &#x20;Updates the company's database with the categorized feedback for record-keeping and further analysis.

As the AI agent runs through all the steps, Texti.ai's AI Agent comes with a log viewer that helps users to build, run the AI agent, and check logs/actions in real-time. The above AI agent, after execution, generates detailed logs for each node process in the workflow.

<figure><img src="/files/PVxzTXUzRaW5tIeEWhxF" alt=""><figcaption><p>Texti's AI Agent logs</p></figcaption></figure>

This AI Agent runs independently on John's existing [Azure Cloud](https://azure.microsoft.com/en-us/free/cloud-services/search/) infrastructure, ensuring hassle-free integration with existing resources.\
\
[Read more about Texti's AI Agent pilot program for enterprises.](/ai-agent.md)


---

# 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.texti.ai/ai-agent/real-time-feedback-to-action-ai-agent.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.
