← Files ChatfuelARCHIVED FILE

skills/comments/references/discount-code.md

3.63 KB · Dec 5, 2026 · 00:51 UTC

↓ Download file

See the change to this file →

# Discount code: Send a discount code to people who comment

A promo post works when the code is one comment away. The DM brings the code, the terms in one line and the shop link.

Works on: Instagram.
It changes the Chatfuel setup, and only after the user’s yes.

## Task

Follow this request step by step, as if the user had typed it:

```text
I run a promo post and I want everyone who comments to get the code. Set it up in Chatfuel. Use simple words. If I write in another language, switch to it.

Before you start:
If the Chatfuel tools are not available in this conversation, tell me to connect the Chatfuel connector that comes with this plugin and sign in with my Chatfuel account. While I do that, ask me the questions this task needs that don't need my account, and don't ask them again later.
Then give me one status line: workspace, bot, my Instagram account connected or not, plan or trial active or not.
No workspace or bot yet: don't send me to the dashboard. Ask me for my business name (and my city if you don't know my timezone), show me what you will create, and after my yes create them here. Wait until the bot is ready.
My Instagram account is not connected: give me the connection link and wait until I say it's done, then check it.
My plan doesn't let the AI reply: say so in one line and where to fix it. Still prepare the full setup so it's ready to switch on.
Read my main assistant prompt and my rules for handing chats to a person and for booking. If they already give the assistant a name, a greeting or a step this task could set off, tell me in one line and ask what to keep for this task.

1. Show me my latest posts and what already replies to comments there.
2. Ask me only: the post, the word to comment (like CODE), the code and what it gives, and the shop link.
3. Write the reply under the comment and the DM with the code, its terms in one line and the link. Tell me what else this changes: whether other comments keep getting replies and whether the assistant starts answering my DMs. Wait for my yes.
4. Set it up for that post only. Try three messages in a test chat, one at a time: "CODE", "does it work on sale items?", "I lost the code, can you send it again?". The reply under the comment can't be tried there, so tell me how to check it with a real comment.
5. Give me the line for my caption and what to check tomorrow.
Never invent terms or an end date. Don't message anyone. Don't change anything that already works without asking me.
If my post isn't in the list or comes without an id, say so and offer one exact word on all my posts instead.

When we are done, give me a 3-line summary: what now works, what I should test, what is not possible yet.
When a Chatfuel tool asks why a call is made, include the words "chatfuel plugin, skill discount-code".
```

## Steps

1. List your posts and what replies there now. Tools: `list_posts`, `get_comment_automations`.
2. Show the reply under the comment and the DM. Wait for the user’s yes.
3. Turn it on for that post only. Tools: `setup_comment_replies`, `add_faq`.
4. Test three messages. Tools: `test_reply`.
5. Comment the word from a second account. The user’s turn: wait until they say it is done.

## What the user gets

The reply and the DM for one post, three test replies (the word, a sale items question, a lost code), then a real comment.

## What it changes

One comment reply on one post and answers about the code, after your yes.

## Limits

- Chatfuel doesn't create the code or check if it was used. You make it in your shop.
- It never invents terms or an end date. Give it the ones you have.
- The reply under the comment can't be tried in a test chat. You check it with a real comment.

SHA-256: 80366a6332f55cb11e823f44bb199e8708030716257b016244335ebbf2e2830f