on 09-15-2020 10:52 AM
Hello everybody, I hosted a custom webchat on my website. Here I have a web chat instance with which I can access the entire functionality of the SAP web chat. With the following function I would like to trigger a skill in my SAP CAI project. However, I don't know what to enter in value to trigger my skill.
Hi Philipp,
if I understand correctly you want to render a button in your webchat client with JavaScript that renders a button of type trigger_skill to invoke a dedicated skill on user interaction. This feature is unfortunately not designed to work in that way. Let me explain: From a pure payload perspective the "value" of a trigger_skill button needs to be a UUID. However, this UUID is created in the backend once a button of type trigger_skill is returned to the frontend. On the next step, the backend will also only accept UUID that were generated by itself before.
An alternative could be a button of type postback which simply sends a message to the backend. This of course has the drawback that the message will be analyzed by natural language understanding and the skill needs to use the correct set of triggers.
Hope I could help, best regards,
Stephan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.