# Is there a way to automatically PIN/FLAG a post that contains specified text?

**URL:** <https://forum.mattermost.com/t/is-there-a-way-to-automatically-pin-flag-a-post-that-contains-specified-text/3571>\
**Category:** Troubleshooting\
**Created:** [July 26, 2017, 12:54am UTC](https://forum.mattermost.com/t/is-there-a-way-to-automatically-pin-flag-a-post-that-contains-specified-text/3571 "2017-07-26T00:54:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanvree](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@seanvree](https://forum.mattermost.com/u/seanvree)\
**Post date:** [July 26, 2017, 12:54am UTC](https://forum.mattermost.com/t/is-there-a-way-to-automatically-pin-flag-a-post-that-contains-specified-text/3571/1 "2017-07-26T00:54:12Z")

</div>

Just as the title says:

Is there a way to automatically PIN and/or FLAG a message in the channel that contains specified text via BOT or the system?

Thanks,

---

<div class="post-metadata">

**Author:** ![prixone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/prixone/32/1184_2.png) [@prixone](https://forum.mattermost.com/u/prixone)\
**Post date:** [July 27, 2017, 1:06am UTC](https://forum.mattermost.com/t/is-there-a-way-to-automatically-pin-flag-a-post-that-contains-specified-text/3571/2 "2017-07-27T01:06:30Z")

</div>

Simplest way I can think of would be using an outgoing hook to get the messages by the trigger word you wish and using the API to take actions.

At the very least I don’t know any existent bots that would do that for you.

On the other hand if you have a bigger programming background you could use one of the current available bots to implement the feature.

---

<div class="post-metadata">

**Author:** ![seanvree](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@seanvree](https://forum.mattermost.com/u/seanvree)\
**Post date:** [July 27, 2017, 2:25am UTC](https://forum.mattermost.com/t/is-there-a-way-to-automatically-pin-flag-a-post-that-contains-specified-text/3571/3 "2017-07-27T02:25:40Z")

</div>

@prixone -

I get the messages fine via outgoing webhook, not worried about that.

But I’d like to use this as like a “TO DO” list if you will. That way, my team could type a specific word or phrase like “ADD TO DO”, and that would pin it to the channel for everyone to see, Ya feel me?

I DO NOT have a coding background, sysadmin here. I’ll look around, I think this would be a great feature.

---

<div class="post-metadata">

**Author:** ![prixone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/prixone/32/1184_2.png) [@prixone](https://forum.mattermost.com/u/prixone)\
**Post date:** [July 27, 2017, 6:55am UTC](https://forum.mattermost.com/t/is-there-a-way-to-automatically-pin-flag-a-post-that-contains-specified-text/3571/4 "2017-07-27T06:55:41Z")

</div>

The API is rather simple and direct if you have a slightly background on c# or php you could achieve it, alternatively you could hire some one to do it for you via [upwork.com](http://upwork.com) for example.

From what I can see the bots for mattermost are separated from it self, you could look for some of the bots at the integration page and perhaps suggest he feature to their developers, alternatively.

[https://about.mattermost.com/community-applications/#privateApps](https://about.mattermost.com/community-applications/#privateApps)

---

<div class="post-metadata">

**Author:** ![seanvree](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@seanvree](https://forum.mattermost.com/u/seanvree)\
**Post date:** [July 27, 2017, 8:35am UTC](https://forum.mattermost.com/t/is-there-a-way-to-automatically-pin-flag-a-post-that-contains-specified-text/3571/5 "2017-07-27T08:35:36Z")

</div>

@prixone got it! Thanks.

Is there a BOT that you know which is somewhat of the “gold standard” or most used?

thanks!

---

<div class="post-metadata">

**Author:** ![prixone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/prixone/32/1184_2.png) [@prixone](https://forum.mattermost.com/u/prixone)\
**Post date:** [July 27, 2017, 6:03pm UTC](https://forum.mattermost.com/t/is-there-a-way-to-automatically-pin-flag-a-post-that-contains-specified-text/3571/6 "2017-07-27T18:03:40Z")

</div>

I haven’t used any but I think rubot is the most used, not sure… maybe some other member will come in and say something.
