# Post comment wise Automation

You can create rules to be triggered by Facebook comments. This can be used to automate your live sales process. You can respond to any comment in the comment or privately (in messenger).

### Automate response to a Comment Using a Keyword in any Post

Say you want to send an automated reply whenever someone comments with 'Price'

* You should first create a sequence with the response you want to send. Go to the Automation tab and select the Feed channel.
* On top of the sequence, click on the "Create a Rule" option. (Works for Facebook and Instagram Messenger,  and Feed).&#x20;
* Select Feed Channel (Facebook Feed) as source and select **Keyword** as Action.
* Add Price as the value. For any similar keywords like pp, cost etc, add separate rules for each of these values.
* Once created, anyone commenting on a post with the keywords you added rules for will get the sequence automatically triggered (either in comment or in messenger, depending on the channel you're designing it to).

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

### Automate response to any comment in a specific Post

Now say you want to send an automated reply whenever someone comments with 'Price' on a specific post. This is useful when you have different prices for different products and you want to send that specific price whenever someone is asking for it on a relevant post.

1. You should first create a sequence with the response you want to send. Go to the Automation tab and select the Feed channel.
2. On top of the sequence, click on the "Create a Rule" option. (Works for Facebook and Instagram Messenger,  and Feed).&#x20;
3. Select Feed Channel (Facebook Feed) as source and select **POST** as Action.
4. Add the [Post ID](#how-to-get-the-post-id) as value (example: [426319653027380)](https://www.facebook.com/426321286360550/posts/426319653027380)
5. Once created, anyone commenting on that POST will get the sequence automatically triggered (either in comment or in messenger, depending on the channel you're designing it to).

<figure><img src="/files/hqUIw1IOniy8TFIskWtg" alt=""><figcaption><p>Creating POST wise rule</p></figcaption></figure>

### Automate response to a comment matching a keyword in a Post

1. On top of the sequence, click on the "Create a Rule" option. (Works for Facebook and Instagram Messenger,  and Feed).&#x20;
2. Select Feed Channel (Facebook Feed) as source and select **POST** as Action.
3. Add the [post ID](#how-to-get-the-post-id) as value (example: 426319653027380)
4. Once created, anyone commenting on that POST will get the sequence automatically triggered (either in comment or in messenger, depending on the channel you're designing it to).
5. Click on the "+" icon at the right side to create a *Child Rule.*
6. Create a `Keyword` based rule as a child rule. Details on keyword based rule are [here.](/chatbot-automation/create-rules-to-trigger-a-sequence/keyword.md)&#x20;

### Automate response to a comment matching an intent in a Post

1. On top of the sequence, click on the "Create a Rule" option. (Works for Facebook and Instagram Messenger,  and Feed).&#x20;
2. Select Feed Channel (Facebook Feed) as source and select **POST** as Action.
3. Add the [post ID](#how-to-get-the-post-id) as value (example: 426319653027380)
4. Once created, anyone commenting on that POST will get the sequence automatically triggered (either in comment or in messenger, depending on the channel you're designing it to).
5. Click on the "+" icon at the right side to create a *Child Rule.*
6. Create an `Intent` based rule as a child rule. Details on intent based rule are [here](/chatbot-automation/create-rules-to-trigger-a-sequence/user-intent-by-nlp-wise-automation.md).&#x20;

### How to Get the Post ID

1. You first have to create a ticket on our Inbox for that specific post. To do that, put any comment on the post. You can of course delete this comment once you're done. (You can also check an existing ticket that has been created for that post)
2. Once you've put the comment, it should create a ticket on our Inbox in your name. Click on it and open the 'Customer Attribute' section.
3. You'll see an attribute called 'post\_id'. Copy that and use it in your Automation Rules.

<figure><img src="/files/11SzaavoT5w03plipmQr" alt=""><figcaption></figcaption></figure>


---

# 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.myalice.ai/chatbot-automation/create-rules-to-trigger-a-sequence/post-comment-wise-automation.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.
