If you would like to pass the Cohere session URL to other services (e.g. your CRM or analytics platform), you can use the Cohere.addSessionUrlListener API:
1
// Add a session URL listener
2
constlistener=(sessionUrl)=>{
3
// sessionUrl is a string corresponding to the current session's URL