# Custom automation - modifications flow for successful integration on Automation plugin

**URL:** https://meta.discourse.org/t/custom-automation-modifications-flow-for-successful-integration-on-automation-plugin/350141
**Category:** Development
**Created:** [February 2, 2025, 3:48pm UTC](https://meta.discourse.org/t/custom-automation-modifications-flow-for-successful-integration-on-automation-plugin/350141 "2025-02-02T15:48:16Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![ddsongs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ddsongs/32/471200_2.png) [@ddsongs](https://meta.discourse.org/u/ddsongs)
#### Post date: [February 4, 2025, 2:17pm UTC](https://meta.discourse.org/t/custom-automation-modifications-flow-for-successful-integration-on-automation-plugin/350141/3 "2025-02-04T14:17:24Z")

</div>

Hi @NateDhaliwal ,

Many thanks for your reply.

Yes, I have followed that guide… I will comment the guide with some suggestions afterwards.

I made the custom automation work btw.

The problem with the 500 internal server error was that I was tagging the wrong “context”, I found it out looking at the logs and tagging the correct one.

Once the content of the right context was added to a variable, the 500 internal server error was solved.

Further logic in the code was also modified.

Edit: To make the custom automation work in my local deployed instance I had to modify also the following files:

## Create your custom automation script

## Update: server.en.yml

add custom automation name; title; and description on the scriptables section of the yml file.

## Update: client.en.yml

add custom automation name on scriptables; add the ‘field’ keyword; inside field keyword add ‘field\_name’ followed by ‘label’ and ‘description’

## Update: scripts.rb

add the custom automation name in the list of scripts. Sample: FILE\_NAME = “file\_name”

## Update: plugin.rb

inside ‘after\_initialize do’, add the path to the custom automation script. Sample: ‘lib/discourse\_automation/scripts/file\_name’

---

_[View the full topic](https://meta.discourse.org/t/custom-automation-modifications-flow-for-successful-integration-on-automation-plugin/350141)._
