{"id":61262,"date":"2024-02-20T09:23:46","date_gmt":"2024-02-20T09:23:46","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=61262"},"modified":"2024-02-21T07:44:57","modified_gmt":"2024-02-21T07:44:57","slug":"new-and-returning-users","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/kb\/new-and-returning-users\/","title":{"rendered":"Personalize Experience for New and Returning Users Across Channels for a Bot"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"ult-spacer spacer-6ae8717e893c6\" data-id=\"6ae8717e893c6\" data-height=\"10\" data-height-mobile=\"10\" data-height-tab=\"10\" data-height-tab-portrait=\"\" data-height-mobile-landscape=\"\" style=\"clear:both;display:block;\"><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><span style=\"font-weight: 400;\">Each channel provides a unique identity for users, such as a Twitter handle, Facebook ID, or email address (Slack\/Team), call ID or phone number (IVR), and email\/customer ID (SDK). The XO Platform creates a corresponding unique identity for each user, ensuring that a user is consistently identified across different channels when interacting with a specific bot.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When a user starts a conversation with a bot, the Platform checks if the user\u2019s channel-provided identity matches any previous users who have interacted with that bot. If a match occurs, the user is marked as a \u2018returning user\u2019 by setting the <\/span><span style=\"font-weight: 400;\"><code>isReturningUser<\/code><\/span><span style=\"font-weight: 400;\"> flag to <\/span><span style=\"font-weight: 400;\"><code>true<\/code><\/span><span style=\"font-weight: 400;\"> in the \u2018BotUserSession\u2019 context object (<\/span><span style=\"font-weight: 400;\"><code>context.BotUserSession.isReturningUser<\/code><\/span><span style=\"font-weight: 400;\">). If there is no match, the user is marked as new.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Bot developers can use <\/span><span style=\"font-weight: 400;\">the <\/span><span style=\"font-weight: 400;\"><code>isReturningUser<\/code><\/span><span style=\"font-weight: 400;\"> flag<\/span><span style=\"font-weight: 400;\"> to provide personalized user experiences by implementing different business logic for new versus returning users.<\/span><\/p>\n<h4>Related Links<\/h4>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/context-object\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Working with Context Object<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-intelligence\/event-based-bot-actions\/#Welcome_On_Connect_Event\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Configure Welcome \/ On-Connect Event<\/span><\/a><span style=\"font-weight: 400;\">\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/analyzing-your-bot\/users-dashboard\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">Users Trend Analysis<\/span><\/a><\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"ult-spacer spacer-6ae8717e89596\" data-id=\"6ae8717e89596\" data-height=\"10\" data-height-mobile=\"10\" data-height-tab=\"10\" data-height-tab-portrait=\"\" data-height-mobile-landscape=\"\" style=\"clear:both;display:block;\"><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Each channel provides a unique identity for users, such as a Twitter handle, Facebook ID, or email address (Slack\/Team), call ID or phone number (IVR), and email\/customer ID (SDK). The XO Platform creates a corresponding unique identity for each user, ensuring that a user is consistently identified across different channels when interacting with a specific...","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[205],"tags":[],"class_list":["post-61262","post","type-post","status-publish","format-standard","hentry","category-kb"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/61262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=61262"}],"version-history":[{"count":7,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/61262\/revisions"}],"predecessor-version":[{"id":61544,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/61262\/revisions\/61544"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=61262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=61262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=61262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}