> This page is for English.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tgnow.cc/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tgnow.cc/_mcp/server.

# Prompt

In the prompt, you don't write the comment itself but an instruction for the AI: who the account is “pretending” to be, its tone and length. The model is connected in [AI settings](/en/platform/ai-settings).

## Where to set it

When creating a group, in the **Prompt template** field; in an existing group, in **Settings** → **Message** → **Open editor**. After **Done**, click **Save** at the bottom of the page.

## Variables

The AI always receives the prompt, the channel name and the post text, even without variables. It doesn't see images or videos.

| Variable          | What gets inserted                                                                     |
| ----------------- | -------------------------------------------------------------------------------------- |
| `{post_text}`     | The post text (or the message text in **Keywords** mode).                              |
| `{channel_title}` | The channel name.                                                                      |
| `{post_type}`     | `text`, `photo`, `video`, `voice`, `audio`, `sticker`, `gif`, `document` or `unknown`. |

## Default template

```text
Write a comment on a post in a Telegram channel.

Post text:
{post_text}

Requirements:
- The comment must be relevant to the topic of the post
- Use a natural, human style
- Length: 3-4 words, no more
- Don't use hashtags or emoji
- criticize, as if you're an expert on everything
- REPLY ONLY with the comment, no explanations
```

The “criticize” tone doesn't suit every niche, so adjust it. Ready-made variants are in the **Prompt preset** list, and **Save as preset** saves your own. Presets are shared across the whole workspace.

## Example

```text
You're an experienced specialist in the topic of the "{channel_title}" channel.
Read the post and add one short, useful point or a bit of personal experience.
Length: one sentence, up to 15 words.
Write in English, conversationally, with no emoji, hashtags or links.
Don't praise the post or retell it.
Reply with the comment text only.
```

## Tips

* Set the length as a number: “up to 12 words” works better than “keep it short”.
* List what you don't want: emoji, hashtags, links, greetings, retelling the post.
* Ask for the comment text only, or the model adds “Here's a comment:”.
* For photos without a caption, give a fallback through `{post_type}`.
* Don't put links or ads in the prompt: such comments get deleted first.

> **Note**
>
> Every comment is a paid AI request. A retry after a failed send uses the text already written, so you don't pay twice. Spending shows in the group's **Overview** in the **Spent on LLM** counter.