Hello,
Not sure if you have look at this documentation for v2 API
https://cloud.ibm.com/docs/watson-assistant?topic=watson-assistant-filter-referencehttps://cloud.ibm.com/apidocs/assistant/assistant-v2#listlogsIf you give it a try on the Postman like this.
https://api.us-south.assistant.watson.cloud.ibm.com/instances/{{instance_id}}/v2/assistants/{{assistant_id}}
/logs?version=2021-06-14&response_timestamp>2022-01-01&response_timestamp<2022-02-15
This will filter the logs given between the two time frames.
In your case, you might want to filter based on
assistant_id
customer_id
session_id
response_timestamp
We have an accelerator which is not exactly the same use case, but the concept is to print out all the conversation in an Administrative dashboard. We used a different strategy than calling the /logs api. We store the conversations as they happened because we can also do some analysis. Here is a screen shot of what it looks like.
------------------------------
Talent Creator (Jane Fung)
Principal Educator
Talent Creator Inc.
educator@talentcreator.ca------------------------------
Original Message:
Sent: Tue April 05, 2022 05:34 PM
From: Björn Þór Jónsson
Subject: Including chat history with post-chat feedback using custom panels
Thanks.
How could the conversation ID be obtained, to send along with other feedback data, from the Custom Panel?
------------------------------
Björn Þór Jónsson
Original Message:
Sent: Tue April 05, 2022 05:01 PM
From: Daniel Toczala
Subject: Including chat history with post-chat feedback using custom panels
I think it requires a V1 API endpoint. You can use both APIs - even in the same project.
------------------------------
Daniel Toczala
Community Leader and Customer Success Manager - Watson
dtoczala@us.ibm.com
Original Message:
Sent: Tue April 05, 2022 01:02 PM
From: Björn Þór Jónsson
Subject: Including chat history with post-chat feedback using custom panels
Thanks for the input, Daniel.
Good to know I'm on the right track with panels; will try something like you suggest, thumbs or stars, a line for a comment and maybe another optional for an email address, should the customer like to be contacted.
Are there API (v2) endpoints for pulling the chat history by conversation ID and timestamp? Can you please point to such endpoints or even provide an example? - I haven't found in the documentation what endpoints I could use for that, though I do see v1 logs can be filtered by conversation_id.
------------------------------
Björn Þór Jónsson
Original Message:
Sent: Tue April 05, 2022 10:10 AM
From: Daniel Toczala
Subject: Including chat history with post-chat feedback using custom panels
A custom panel makes sense, that is one of the envisioned uses of the panels. I would limit the amount of data and dialog in that panel - keep it to just stars, thumbs up/down, and a single line for comments. Chat history can be pulled in other ways from AP, especially if you provide a conversation ID and timestamp - do that as a post-processing step when it is needed.
------------------------------
Daniel Toczala
Community Leader and Customer Success Manager - Watson
dtoczala@us.ibm.com
Original Message:
Sent: Tue April 05, 2022 07:30 AM
From: Björn Þór Jónsson
Subject: Including chat history with post-chat feedback using custom panels
Hi,
Looking into ways to offer customers the option of providing direct feedback from the Watson Assistant web chat window, e.g. with thumbs up / -down or star-rating buttons, and possibly some text input, it seems like implementing a Custom Panel would be the way to go - does that make sense?
When sending the feedback, it would be useful to include the chat history with the submitted feedback. How can that data be obtained from the web chat API JS instance?
------------------------------
Björn Þór Jónsson
------------------------------
#WatsonAssistant