Skip to main content

Setting Up Webhooks On Routing Dispatched

1. Introduction

When you dispatch routing results, you may need to make adjustments such as moving visits to different vehicles or changing assignees. This event ensures that you receive updated routing result data at your specified URL. This automation triggers each time you hit the Dispatch button in the Routing/Result menu.

2. Prerequisites

Before proceeding, ensure that you have the following:
  1. Access to your user account on MileApp.
  2. A valid URL where you want to receive the webhook payload.

3. Setting Up a Webhook

3.2 Creating a New Automation

  1. In the Automation settings, locate the “New” button and click on it.
image
  1. This will open a new automation configuration page. Fill in the following details:
    1. Automation Name: Provide a descriptive name for your automation to easily identify it later.
    2. Event: Select the “On Routing Dispatched” event to trigger the automation when you dispatch the routing result.
    3. Automation Type: Choose “Webhook” as the automation type to enable webhook integration.
    4. URL: Enter the URL where you want to receive the webhook payload.
    5. Header (Optional): If required, specify any additional headers to be included in the webhook request.
    6. Value (Optional): Provide corresponding values for the headers if applicable.
image
  1. Once you have completed the automation configuration, click Submit to create the new automation. Upon activation, the automation will send the payload to the specified URL every time the route optimization dispatch process is completed.
To ensure that your webhook settings are functioning correctly, you can check the Automation log. The Automation log provides detailed information about the execution of your automations. By reviewing the log, you can verify if the webhook requests are being sent successfully and if any errors or issues occur during the process. Monitoring the Automation log regularly will help you stay informed about the status and performance of your webhook integration.