> For the complete documentation index, see [llms.txt](https://docs-v2.autoforwardtelegram.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-v2.autoforwardtelegram.com/modify-content/ai-mode/ai-smart-rewrite.md).

# AI Smart Rewrite

### 🧠 Smart AI Rewrite – UI Guide

This section explains how to configure and use the Smart AI Rewrite feature inside the AutoForward app. With this feature, messages can be automatically rewritten by AI before being forwarded.

***

#### 📲 Step-by-Step Walkthrough

1. **Select the Task you want to apply AI MODE to**

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

2. **Select the AI MODE option inside the bot**

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

3. **Select Smart AI Rewrite**

<figure><img src="/files/4KObGv2iT49B3d2gafxN" alt=""><figcaption></figcaption></figure>

**4. Initial Screen (Feature Disabled)**

* Model: You must first select an AI model (e.g., gpt-3.5-turbo, gemini-pro)&#x20;
* Toggle: The “Smart AI Rewrite” toggle is off by default.

***

**② After Enabling Smart AI Rewrite**

Once the feature is toggled ON:

* ✅ Model Selected: Choose your preferred model (e.g., ChatGPT).
* ✅ Rewrite Instructions:

  Enter a prompt to guide the AI on how to rewrite the message.

  *Example:*

  > “Make this more casual and humorous.”

  > “Polish grammar and simplify complex words.”
* 🧠 Predefined Templates:

  Quickly apply common rewrite goals by tapping suggested buttons:

  * Rewrite to sound more friendly and upbeat
  * Rephrase to be professional and formal
  * Highlight key trading signals and market insights

***

#### ⚠️ Notes

* Using AI may introduce slight forwarding delays due to processing time.
* You must have a valid OpenAI API Key and enough quota to use this feature.
* Rewrite instructions are optional but help produce more tailored results.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs-v2.autoforwardtelegram.com/modify-content/ai-mode/ai-smart-rewrite.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
