Hello @sdkang.
To configure context variables, follow these steps:
- Go to your WordPress dashboard (sample screenshot)
- Go to “Watson Assistant” > “Advanced Features” in the left menu (sample screenshot)
- On the “Advanced Plugin Features” page, go to the “Context Variables” section and enter a name for the context variable in the text box, for example “version” (sample screenshot)
- Go to the settings of the dialog node and add to the answer the name of the context variable that you entered in the plugin settings. Remember to add a dollar sign in front of the name of the context variable (sample screenshot)
- Call up the customized dialog node on your site (sample screenshot)
- Also keep in mind that for users who are not logged in, only the context variable with the value “Plug-in Version” will be available, since WordPress has no other data about them.
Thread Starter
sdkang
(@sdkang)
Thank you for your reply.
After I deleted all cache of browser, it worked well.
Now, I want to know how to allow chat only for logged in users.
Thread Starter
sdkang
(@sdkang)
OK,
I made it using style.css.
Thank you.
Hello @sdkang.
We are glad that now everything works for you.
Thank you for letting us know and since the problem is resolved, please mark the topic as resolved.