How to Start Call via URL Parameter (UTM)

Add ?requestAgent=[workflowId] to your URL to start the call as soon as the prospect lands on your website

Enable visitors to request an agent as soon as they join the site via link by adding requestAgent=workflowId to your website's URL. This functionality seamlessly integrates with the F2F SDK, automatically initiating the requestAgent function when the page loads.


Overview

By appending the requestAgent=workflowId parameter to your website's URL, you can allow visitors to trigger the F2FSDK.requestAgent() function without additional user interaction.


Prerequisites

  1. Popup Workflow ID: Obtain the unique ID of your popup workflow from the F2F dashboard under the Workflows section.
    1. 💡

      Where to find your workflowId ? - Navigate to workflows - Click on the 3 dots next to the workflow you’d like to trigger (TYPE must be “popup”) - Click “Copy Workflow ID” - Paste workflowID in your url like so https://face2face.io?requestAgent=workflowId

       
      Notion image
  1. F2F SDK Integration: Ensure the F2F SDK is properly integrated into your website.

How It Works

When the URL contains the requestAgent=workflowId parameter:

  • The F2F SDK detects the parameter.
  • The F2FSDK.requestAgent("workflowId") function is automatically invoked using the value of the parameter.

For example:

https://yourwebsite.com/?requestAgent=your_workflow_id

This will call F2FSDK.requestAgent("your_workflow_id") when the page loads.


Example Use Case

Suppose you are running a marketing campaign where visitors can request assistance as soon as they land on a specific page. You can create and share the following link:

https://yourwebsite.com/product?requestAgent=12345

When visitors click the link, the F2F SDK automatically triggers the popup workflow associated with the workflow ID 12345 and all your agents will receive call request.


Notes

  1. If you haven't already, make sure to read the documentation for the requestAgent function.
  1. Ensure the workflowId corresponds to a valid popup workflow in the F2F dashboard.
  1. This feature works alongside other URL parameters, such as f2f-userId, for tracking and identification:
    1. https://yourwebsite.com/?f2f-joined_from_new_link=true&requestAgent=12345
 
 

Last updated on January 21, 2025