# Answer Generation With MAAX AI

Take a look at the image below:

<figure><img src="/files/34XDXWpahDCtrcRulHaK" alt=""><figcaption><p>Answer generation &#x26; retrieval</p></figcaption></figure>

As you can see, whenever you receive a message that you want to be responded to you will be calling MAAX AI API. You will need to perform two separate actions to finally receive a response that can be sent back to your prospect:

* Initiate answer generation
* Retrieve answer

There are multiple reasons our engineering team decided to keep these two seemingly similar functions separate:

1. **More control:** meaning that you can send back the generated message of platform more easily.
2. **Scaling:** We designed MAAX API to handle millions of messages every hour. Keeping those two endpoints separate was pivotal for making possible.&#x20;
3. **Better integration:** You may want to inegratee the MAAX AI answer generation routines in your existing (custom) tech stack. Keeping these endpoints separate allows your tech team to achieve this.&#x20;

In addition, as you can see there is normally a delay between the answer generation and answer retrieval. Here is why:

* **MAAX AI is so much more than a clone of a LLM model:** In the backend MAAX AI performs complex math, data analysis, text analysis and other computationally intense proceedures to craft that perfect response. And it takes some time. Sometimes up to a minute.&#x20;
* **Customer (Prospect) Experience:** the messages we craft are designed to feel as "human" as possible. So if someone sends an email to your customer support and receives an answer within a minute then the prospect is likely to be suspicious of how this was generated. Having a 15 minute delay creates a much more "human" feeling to the entire experience. Thats also why we generally are skeptical about chatbots.&#x20;

{% hint style="info" %}
To get a better understanding & intuition about why it makes sense to create some delay between when the sender sends a message and they receive an answer we recommend that you familiarize yourself with a concept of "Uncanny Valley". Here are some great resources to do so:

* <https://www.youtube.com/watch?v=VmgS2JltwX4>
* <http://people.cs.luc.edu/whonig/comp-388-488-robotics/course-materials/course-reading-materials/UncannyValleyGrapicsmcg2008040011.pdf>
  {% endhint %}


---

# 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://documentation.maax.ai/main/technical-guides/explanatory-diagrams/answer-generation-with-maax-ai.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.
