# Automation to close Solved topics and post a template response

**URL:** https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370
**Category:** Development
**Tags:** solved, automation
**Created:** [March 28, 2024, 6:37pm UTC](https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370 "2024-03-28T18:37:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![45thj5ej](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@45thj5ej](https://meta.discourse.org/u/45thj5ej)
#### Post date: [March 28, 2024, 6:37pm UTC](https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370/1 "2024-03-28T18:37:16Z")

</div>

Can this be made/edited to automatically close a topic instantly and leave a message once a topic is marked as Solved/gets solved tag? Please!

Please see: [Instantly close topic when marked as Solved and leave a custom message](https://meta.discourse.org/t/request-instantly-close-topic-when-marked-as-solved-and-leave-a-custom-message/301364)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 4, 2024, 9:25am UTC](https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370/2 "2024-04-04T09:25:17Z")

</div>

It is possible to create a custom script for Automation. There’s a bit of info here, though it’s not particularly fleshed out:

> [@Create custom Automations](https://meta.discourse.org/t/create-custom-automations/275931):
>
> information_source This is a draft, and may need some extra work. Vocabulary trigger: represents the name of the trigger, eg: user\_added\_to\_group triggerable: represents the code logic associated to a trigger, eg: triggers/user\_added\_to\_group\_.rb script: represents the name of the script, eg: send\_pms scriptable: represents the code logic associated to a script, eg: scripts/send\_pms.rb Plugin API add\_automation\_scriptable(name, &block) add\_automation\_triggerable(name, &block) Scriptable AP…

If you do give it a go, let us know how you get on. 👍
