# Webhook Diversions List

<p>
  Retreaver has a list of supported integrations that are not templated under the
  <a href="https://learn.retreaver.com/guides/retreaver-webhook-configurator">Retreaver webhook configurator</a>
  ( which typically handle URL parameter and JSON workflows ).&nbsp;
</p>
<p>
  For API's built with unconventional response formats such as pipe delimited content
  or XML (Extensible Markup Language), Retreaver <strong>diverted</strong> these
  workflows away from the webhook configurator tool and instead are using an internal
  webhook request and response handler.&nbsp;
</p>
<p>
  A list of these webhooks have been documented below for use by the Retreaver
  support team or any Retreaver clients looking to implement these integrations
  unto their call campaigns.&nbsp;
</p>
<p>&nbsp;</p>
<p>
  <span class="wysiwyg-font-size-small"><em>Note: Do not utilize the webhook configurator for any diverted integration URL's, otherwise instead of internally diverting the URL, the system will try to communicate with a non-reachable API endpoint and the integration will not process correctly.</em></span>
</p>
<p>
  <span class="wysiwyg-font-size-small"><em>Additional Note: Certain API platforms may require you to whitelist </em></span><a href="https://learn.retreaver.com/guides/what-ip-addresses-do-retreaver-requests-come-from"><span class="wysiwyg-font-size-small"><em>Retreaver IP addresses</em></span></a><span class="wysiwyg-font-size-small"><em> in order to respond.&nbsp;</em></span>
</p>
<hr>
<figure class="wysiwyg-table" style="max-width: 100%; width: 100%;">
  <table class="wysiwyg-table-resized" style="margin-left: 0px; margin-right: auto;">
    <colgroup>
      <col style="width: 100%;">
    </colgroup>
    <tbody>
      <tr>
        <td style="overflow-wrap: anywhere; white-space: normal;">
          <p>&nbsp;</p>
<h2 style="text-align: center;">
  Generic XML Webhook Configurator Diversion
</h2>
          <p>
            <strong>Generic XML Webhook Format:</strong>
          </p>
          <p>
            https://retreaver.com/webhook-integration/xml/?output_tag_prefix=<span style="background-color: #004000;">example_12345</span>&amp;xml_method=<span style="background-color: #004000;">POST</span>&amp;xml_url=<span style="background-color: #004000;">https://example-xml-api.com/integration</span>&amp;xml_headers=<span style="background-color: #004000;">%7B%22Content-Type%22:%22application/xml%22%7D</span>&amp;xml_body=<span style="background-color: #004000;">%3Ccontact_create%3E%3Caccess_key%3El86t6wyppm%3C/access_key%3E%3C/contact_create%3E</span>&amp;xml_output_map=<span style="background-color: #004000;">%7B%22number%22:%22//response/@number%22,%22bid%22:%22//response/@bid%22,%22timer%22:%22//response/@timer%22%7D</span>
          </p>
          <p>
            <strong>Generic XML Setup Instructions:</strong>
          </p>
          <p>
            1) Create the webhook and set it to trigger on your desired
            circumstance, typically "Passthrough" or "On Call start".
          </p>
          <p>
            2) Replace the following URL parameters with your required
            values:&nbsp;
          </p>
          <p>
            <span style="background-color: #004000;">output_tag_prefix</span>,
            <span style="background-color: #004000;">xml_method</span>,
            <span style="background-color: #004000;">xml_url</span>,
            <span style="background-color: #004000;">xml_headers</span>,
            <span style="background-color: #004000;">xml_body</span>
            &amp; <span style="background-color: #004000;">xml_output_map</span>.&nbsp;
          </p>
          <p>
            <br>
            <span style="background-color: #404000;"><strong>Critical note:</strong></span>
            You must URI encode the JSON and XML values entered in these
            fields otherwise the internal parser will not be able to
            convert the URL into proper JSON or XML format.
          </p>
          <p>Most common encoded characters include:</p>
          <p>
            " becomes %22&nbsp;<br>
            { becomes %7B<br>
            } becomes %7D<br>
            &lt; becomes %3C<br>
            &gt; becomes %3E
          </p>
          <p>
            3) Update the buyer &nbsp;tags, typically including a transfer
            number with [<span style="background-color: #004000;">example_12345</span>_number]
            and utilize any conversion tokens such as '<span style="background-color: #004000;">example_12345</span>_timer'
            &amp; '<span style="background-color: #004000;">example_12345</span>_timer
            on your conversion criteria.
          </p>
          <p>&nbsp;</p>
        </td>
      </tr>
      <tr>
        <td style="overflow-wrap: anywhere; white-space: normal;">
          <p>&nbsp;</p>
          <h2 style="text-align: center;">
  Vicidial Pipe-Delimited Agent Availability Diversion
</h2>
          <p>
            <strong>Vicidial Webhook Format:</strong>
          </p>
          <p>
            https://retreaver.com/webhook-integration/vicidial-availability/?call_key=[call_key]&amp;call_uuid=[call_uuid]&amp;tag_name_prefix=<span style="background-color: #004000;">vicidial_agents_waiting_12345</span>&amp;delimiter_index=13&amp;caller_number=[nanp_caller_number]&amp;url=<span style="background-color: #004000;">https://ppg.phdialer.com/vicidial/non_agent_api.php?source=template%26user=template%26pass=template%26stage=http%26function=in_group_status%26in_groups=template%26header=YES</span>
          </p>
          <p>
            <strong>Vicidial Setup Instructions:</strong>
          </p>
          <p>
            1) Create the webhook and set it to trigger on "Passthrough"
            or "On Call start".
          </p>
          <p>2) Replace fields highlighted in green.</p>
          <p>
            3) Tag the buyer with "<span style="background-color: #004000;">vicidial_agents_waiting_12345</span>"
            &gt;= 1.
          </p>
          <p>
            4) (Optional ) If the Vicidial integration returns the pipe
            delimited availability value in another index, you may need
            to adjust the 'delimiter_index' parameter value from the
            default '13' to another value.&nbsp;
          </p>
          <p>&nbsp;</p>
        </td>
      </tr>
      <tr>
        <td style="overflow-wrap: anywhere; white-space: normal;">
          <p>&nbsp;</p>
                  <h2 style="text-align: center;">
  Five9 XML Agent Availability Diversion
</h2>
          <p>
            <strong>Five9 Webhook Format:</strong>
          </p>
          <p>
            https://retreaver.com/webhook-integration/five9-xml-agent-availabilty/?call_key=[call_key]&amp;call_uuid=[call_uuid]&amp;encoded_authorization_token=<span style="background-color: #004000;">AUTH-TOKEN</span>&amp;output_tag_prefix=<span style="background-color: #004000;">five9_12345</span>&amp;statistic_type=ACDStatus&amp;column_name=Agents%20Ready%20For%20Calls&amp;row_response=[caller_state]%20Skill
          </p>
          <p>
            <strong>Five9 Setup Instructions:</strong>
          </p>
          <p>
            1) Create the webhook and set it to trigger on "Passthrough"
            or "On Call start".
          </p>
          <p>2) Replace fields highlighted in green.</p>
          <p>
            3) Tag the buyer with "<span style="background-color: #004000;">five9_12345</span>_get_stat_response"
            &gt;= 1.
          </p>
          <p>&nbsp;</p>
        </td>
      </tr>
      <tr>
        <td style="overflow-wrap: anywhere; white-space: normal;">
          <p>&nbsp;</p>
                            <h2 style="text-align: center;">
  Networx XML Ping Diversion
</h2>
          <p>
            <strong>Networx Webhook Format:</strong>
          </p>
          <p>
            https://retreaver.com/webhook-integration/networx-xml-ping/?call_key=[call_key]&amp;call_uuid=[call_uuid]&amp;nx_userId=<span style="background-color: #004000;">55555</span>&amp;nx_access_key=<span style="background-color: #004000;">template</span>&amp;network_id=<span style="background-color: #004000;">template</span>&amp;zipcode=[caller_zip]&amp;phone=[nanp_caller_number]&amp;output_tag_prefix=<span style="background-color: #004000;">networx_12345</span>&amp;task_id=<span style="background-color: #004000;">299</span>
          </p>
          <p>
            <strong>Networx Setup Instructions:</strong>
          </p>
          <p>
            1) Create the webhook and set it to trigger on "Passthrough"
            or "On Call start".
          </p>
          <p>2) Replace fields highlighted in green.</p>
          <p>
            3) Update the buyer transfer number with [<span style="background-color: #004000;">networx_12345</span>_number]
            and utilize the conversion token '<span style="background-color: #004000;">networx_12345</span>_timer'
            &amp; '<span style="background-color: #004000;">networx_12345</span>_bid
            on your conversion criteria.
          </p>
          <p>&nbsp;</p>
        </td>
      </tr>
      <tr>
        <td style="overflow-wrap: anywhere; white-space: normal;">
          <p>&nbsp;</p>
          <h2 style="text-align: center;">
  Datalot Medicare XML Ping Diversion
</h2>
          <p>
            <strong>Datalot Medicare Webhook Format:</strong>
          </p>
          <p>
            https://retreaver.com/webhook-integration/datalot-xml-medicare/?call_key=[call_key]&amp;call_uuid=[call_uuid]&amp;caller_number=[nanp_caller_number]&amp;city=[caller_city]&amp;state=[caller_state]&amp;zip=[caller_state]&amp;age=<span style="background-color: #404000;">77</span>&amp;test=false&amp;access_key=<span style="background-color: #004000;">ACCESS_KEY</span>&amp;source_id=<span style="background-color: #004000;">SOURCE_ID</span>&amp;product_id=227&amp;campaign_id=<span style="background-color: #004000;">CAMPAIGN_ID</span>&amp;output_tag_prefix=<span style="background-color: #004000;">datalot_medicare_12345</span>&amp;dob_year=<span style="background-color: #404000;">1950</span>&amp;dob_month=<span style="background-color: #404000;">01</span>&amp;dob_day=<span style="background-color: #404000;">01</span>
          </p>
          <p>
            <strong>Datalot Medicare Setup Instructions:</strong>
          </p>
          <p>
            1) Create the webhook and set it to trigger on "Passthrough"
            or "On Call start".
          </p>
          <p>
            2) Replace fields highlighted in green. If possible, change
            the values in yellow if you are collecting those fields -
            otherwise note that we've hardcoded those values to a default
            format that the integration requires and accepts.
          </p>
          <p>
            3) Update the buyer and utilize the revenue conversion token
            '<span style="background-color: #004000;">datalot_medicare_12345</span>_ping_price'
            on your conversion criteria.
          </p>
          <p>
            4) Tag the buyer with '<span style="background-color: #004000;">datalot_medicare_12345</span>_success'
            == 'true'.
          </p>
          <p>&nbsp;</p>
        </td>
      </tr>
      <tr>
        <td style="overflow-wrap: anywhere; white-space: normal;">
          <p>&nbsp;</p>
                    <h2 style="text-align: center;">
  Datalot Health XML Ping Diversion
</h2>
          <p>
            <strong>Datalot Health Webhook Format:</strong>
          </p>
          <p>
            https://retreaver.com/webhook-integration/datalot-xml-health/?call_key=[call_key]&amp;call_uuid=[call_uuid]&amp;caller_number=[nanp_caller_number]&amp;city=[caller_city]&amp;state=[caller_state]&amp;zip=[caller_state]&amp;age=<span style="background-color: #404000;">77</span>&amp;test=false&amp;access_key=<span style="background-color: #004000;">ACCESS_KEY</span>&amp;source_id=<span style="background-color: #004000;">SOURCE_ID</span>&amp;product_id=227&amp;campaign_id=<span style="background-color: #004000;">CAMPAIGN_ID</span>&amp;output_tag_prefix=<span style="background-color: #004000;">datalot_health_12345</span>&amp;dob_year=<span style="background-color: #404000;">1950</span>&amp;dob_month=<span style="background-color: #404000;">01</span>&amp;<span style="background-color: #404000;">dob_day</span>=01
          </p>
          <p>
            <strong>Datalot Health Setup Instructions:</strong>
          </p>
          <p>
            1) Create the webhook and set it to trigger on "Passthrough"
            or "On Call start".
          </p>
          <p>
            2) Replace fields highlighted in green. If possible, change
            the values in yellow if you are collecting those fields -
            otherwise note that we've hardcoded those values to a default
            format that the integration requires and accepts.
          </p>
          <p>
            3) Update the buyer and utilize the revenue conversion token
            '<span style="background-color: #004000;">datalot_health_12345</span>_ping_price'
            on your conversion criteria.
          </p>
          <p>
            4) Tag the buyer with '<span style="background-color: #004000;">datalot_health_12345</span>_success'
            == 'true'.
          </p>
          <p>&nbsp;</p>
        </td>
      </tr>
      <tr>
        <td style="overflow-wrap: anywhere; white-space: normal;">
          <p>&nbsp;</p>
          <h2 style="text-align: center;">
  Datalot Auto XML Ping Diversion
</h2>
          <p>
            <strong>Datalot Auto Webhook Format:</strong>
          </p>
          <p>
            https://retreaver.com/webhook-integration/datalot-xml-auto/?call_key=[call_key]&amp;call_uuid=[call_uuid]&amp;caller_number=[nanp_caller_number]&amp;city=[caller_city]&amp;state=[caller_state]&amp;zip=[caller_state]&amp;age=<span style="background-color: #404000;">77</span>&amp;test=false&amp;access_key=<span style="background-color: #004000;">ACCESS_KEY</span>&amp;source_id=<span style="background-color: #004000;">SOURCE_ID</span>&amp;product_id=227&amp;campaign_id=<span style="background-color: #004000;">CAMPAIGN_ID</span>&amp;output_tag_prefix=<span style="background-color: #004000;">datalot_auto_12345</span>&amp;dob_year=<span style="background-color: #404000;">1950</span>&amp;dob_month=<span style="background-color: #404000;">01</span>&amp;dob_day=<span style="background-color: #404000;">01</span>&amp;email=<span style="background-color: #404000;">example_email@gmail.com</span>&amp;first_name=<span style="background-color: #404000;">john</span>&amp;last_name=<span style="background-color: #404000;">doe</span>&amp;annual_miles=<span style="background-color: #404000;">5000</span>&amp;company=<span style="background-color: #404000;">progressive</span>&amp;started=<span style="background-color: #404000;">2015-07-15</span>&amp;expires=<span style="background-color: #404000;">2020-07-29</span>&amp;continuous_years_insured=<span style="background-color: #404000;">5</span>&amp;license_issued=<span style="background-color: #404000;">2000-12-31</span>
          </p>
          <p>
            <strong>Datalot Auto Setup Instructions:</strong>
          </p>
          <p>
            1) Create the webhook and set it to trigger on "Passthrough"
            or "On Call start".
          </p>
          <p>
            2) Replace fields highlighted in green. If possible, change
            the values in yellow if you are collecting those fields -
            otherwise note that we've hardcoded those values to a default
            format that the integration requires and accepts.
          </p>
          <p>
            3) Update the buyer and utilize the revenue conversion token
            '<span style="background-color: #004000;">datalot_auto_12345</span>_ping_price'
            on your conversion criteria.
          </p>
          <p>
            4) Tag the buyer with '<span style="background-color: #004000;">datalot_auto_12345</span>_success'
            == 'true'.
          </p>
          <p>&nbsp;</p>
        </td>
      </tr>
    </tbody>
  </table>
</figure>
<p>
  <br>
  &nbsp;
</p>