# Replace Text

This can be helpful for correcting information, updating details, or dynamically adjusting the message based on new data.

<figure><img src="/files/tTNupSvx1XXaMFP6iTml" alt=""><figcaption></figcaption></figure>

## **How it Works**

1. **Identify the Message**: Locate the message or card that needs to be updated, typically by referencing the unique message ID or conversation context.
2. **Replace the Text**: Use the API to send a request to update the content. The new text will replace the existing message content while keeping the rest of the conversation flow intact.
3. **Dynamic Updates**: This is particularly useful for real-time updates, such as changing order status, modifying appointment times, or correcting any errors in the previously sent message.

<figure><img src="/files/mfTp5UJ5Xhf51hcgVHJY" alt=""><figcaption></figcaption></figure>

## **Benefits**

* **Improves Accuracy**: Allows for quick corrections or updates to messages without interrupting the conversation flow.
* **Enhances Customer Experience**: By providing real-time updates, you can ensure customers receive the most up-to-date and accurate information.
* **Streamlines Communication**: Enables dynamic adjustments to messages without needing to start a new conversation or thread.

This feature helps maintain a seamless interaction while keeping the content accurate and relevant.


---

# 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.bizmagnets.ai/bot-flows/logic/replace-text.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.
