Skip to main content
Creating a template in Order Intake
Updated over 3 months ago

This guide explains how to use the new Test Template functionality to create and test templates for different events in the Order Intake Workflow.


Steps to Create and Test a Template

  1. Navigate to Templates:

    • Go to Workflow > Order Intake > Templates.

    • Select the option to Add Template.

  2. Choose Template Type:

    • Select the template type: Webhook or Email for triggers, or choose from:

      • Order Submit Request

      • Submit Response

      • Cancel Response

  3. Define Template Format:

    • Select the format (e.g., JSON) for the template you are creating (e.g., for an "Order Received" event).

  4. Generate Sample Input Payload:

    • Click Generate Template.

    • Use the option to add a Sample Input Payload for data input. Select from different events, such as Order Answered, Delivered, Failed, Produced, Received, Returned, or Shipped.

  5. Create Template Mapper:

    • In the Template Mapper section, define the mapping for your template.

  6. Render and Verify Template:

    • After defining the Data Input and mapping, click Render to compile the template.

    • Verify the output to ensure the template compiles correctly and matches the expected results (e.g., "Order has been received with Order ID and timestamp").

  7. Run Test for Template:

    • Assign a name to the test and run it.

    • Check that the test compiles correctly and that the status is Passed.

  8. Save and Use the Template:

    • Once the template is working correctly, save it by clicking on the Add Template button.

    • The saved template can then be used for defining triggers for specific customers or events.


Using the Template for Triggers

  1. Define a Trigger:

    • Go to the Events section and select an event (e.g., Order Received).

    • Choose the template you want to use for this event from the available list.

  2. Create a Template Directly for the Trigger:

    • If a template is not yet defined, you can create one directly in the Triggers section using the same interface as the Templates page.

  3. Generate and Save the Template:

    • Provide a name, generate the template, and use the same interface to configure it for the specific trigger.


Customer Support

If you need any support or would like to share feedback, contact us at [email protected]

Did this answer your question?