Problem Description:
In certain cases, an issue may arise when metavariables are not correctly passed through Zendesk Embed. For instance, if a conditional statement depends on a specific metavariable that is not properly passed to Ada, it can cause the bot to redirect the chatter to an incorrect flow, halt the bot's operation, or cause a failure in a block where the metavariable should have been utilized.
Solution Steps:
To diagnose and address metavariable passing issues in Zendesk Embed, follow these steps:
-
Open the Developer Console:
a. Right-click on the page where the Embed is located.
b. Select "Inspect" to open the developer console. -
Access the Network Data:
a. Within the developer console, navigate to the "Network" tab.
b. Look for the "data_storage/" entry.
c. Click on "Payload" under the "data_storage/" entry. -
Observe Passed Metavariables:
Take note of the metavariables being passed and the corresponding values. This information will help identify any discrepancies or missing metavariables. -
Verify Conditional and Block Usage:
Examine the conditional statements or blocks where the metavariables should be utilized. Ensure that the metavariables are correctly referenced and that the logic is sound.a. Review the conditional statements and confirm that they rely on the appropriate metavariables.
b. Check the blocks where the metavariables should be used and ensure they are correctly integrated.
How a client might set metavariables:
-
window.adaSettings - metafields setting is used when the value needs to be set at the first launch of the bot
-
window.adaEmbed.setMetaFields() - the setMetafields action is used when values have to be changed after the bot was already opened
-
using the adaEmbed.start action
Comments
0 comments