URL Parameters
dg-widget-launch
The widget can be maximised on page load when the current page url contains the parameter dg-widget-launch.
Example:
www.google.com?dg-widget-launch
The parameter can be assigned a value, which is then included as metadata.
Example:
www.google.com?dg-widget-launch=productRecommendation
Will result in the following being added as a flow input:
{
"metadata": {
"launchQuery": "productRecommendation"
}
}The value must be up to 64 letters, digits, - or _. Any other value still opens the widget, but isn't passed to the flow.
Anyone can create a link with this parameter, so flows should treat launchQuery as untrusted input: use it to pick a branch, not as text in an AI prompt or a reply.
For this functionality to work, you must ensure you haven't explicitly setisDialogMaximised: falsein config.
Updated 13 days ago
Did this page help you?
