Workflow
The workflow function triggers a predefined workflow in your F2F dashboard
Usage: F2FSDK.workflow(workflow_id, custom_message)
Parameters:
- workflow_id: The unique identifier for the workflow.
- How to get it: In the Workflows tab (left sidebar), click the three dots next to a workflow and select Copy Workflow ID.
- custom_message (optional): A string to override the default message for this workflow.
Behavior:
- If
custom_message
is not provided, the default message defined in the workflow will be used.
Example Code:
F2FSDK.workflow("abc123xyz", "New Visitor from {{visitor.country}} just entered");
Last updated on December 23, 2024