Getting current session URL
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:
// Add a session URL listener
const listener = (sessionUrl) => {
// sessionUrl is a string corresponding to the current session's URL
// Remove a session URL listener
Copy link