where to write code for brand function
How to create brand function
Go to brand function in Dashboard and click on Add New button then write function Name and Description
Note:-After creating a function make sure to make it status "Active".

How to connect brand function to workflow
After creating brand function, go to edit button of node in workflow and there in "Action" dropdown select your brand function name you want to connect with that node.

where to write code for brand function
After creating brand function through dashboard we have to write it's code in brand-action.js
path : /ori/ori-communication-service/BrainService/brand-files/actions/brand-actions.js