Webhook
Listens to events that occur on this event and proceeds to the next step in the flow.
Last updated
Was this helpful?
Was this helpful?
const conversation_url = "Conversation URL";
const conversation_url = "Conversation URL";
// Function to extract the conversation key from the URL
function getLastPartOfUrl(url) {
// Split the URL by slashes
const parts = url.split('/');
// Return the last part
return parts[parts.length - 1];
}
// Retrieve the conversation key from the URL
const conversation_key = getLastPartOfUrl(conversation_url);
// Sets the conversation key into a new variable
wn.setConversationVariable("conversation_key", conversation_key);
// This variable will be used to push the conversation_key to the third-party app.