Autorun AI Docs
Process DesignerBusiness Function

How to Create and Connect a Business Process in Autorun

This guide shows the exact steps to create and connect a Business Process in an Autorun application.


Super Fast Build: Prompt for Mileva

When a new Invoice record is created, send an email notification to the assigned sales rep and account manager with Invoice details (number, amount, customer, due date).


Steps:

1. Open Process Designer

  • Open Process Designer in Developer Toolbox
  • Click Add process

2. Create a New Process

Fill in the basic process details:

  • Name (visible in the upper left corner with edit button): A Test Business Function
  • Type: Business

3. Configure the Trigger

In the Trigger section set:

  • Select from the Event dropdown menu: After Create
  • Select from the Entity dropdown menu: Offers

This means the process will run every time a new Offer record is created.


4. Build the Process Flow

On the canvas:

  • The Start and End nodes are created automatically
  • From the Library section, drag and drop a Code block of your choosing
  • Connect the nodes by draging one end of the node to the other:
    • Start -> Code
    • Code -> End

If Start and End are not connected, the process will not execute.


5. Add Logic to the Code Block

  • Click Code icon in the upper right corner of the code

  • Your logic is added by default, for example:

console.log(context);

  • Click Save