Documentation - Khoros Flow
  • Getting started
  • Triggers & Replies
  • Actions
  • Integrations
  • Guides
  • API

›Code How To​s

Guides

  • Overview
  • Learn

    • Beginner guide
    • Advanced guide

    Design How To​s

    • How to use timers
    • How to integrate with Zapier
    • How to increase web widget engagement
    • How to use Conditions
    • How to set parameters using buttons
    • How to send conversational reviews
    • Count sessions per Channel or Widget
    • How to use entities instead of multiple intents
    • How to handle multiple inbound messages
    • How to branch your chatbot
    • How to capture user input
    • How to change the language of your bot
    • How to clear the Flow web widget
    • How to create an Arabic speaking bot
    • How to create and manage multiple chatbots
    • How to create buttons
    • How to duplicate flows
    • How to export and duplicate a project
    • How to handle unknown input
    • How to use string templates
    • How to jump to the middle of a flow
    • How to loop flows
    • How to re-use intents
    • How to reset your password
    • How to schedule and broadcast chatbot messages
    • How to structure flows
    • How to use Business Hours
    • How to use carousels
    • How to use data to create context
    • How to use Quick Replies
    • How to pause a bot
    • How to send and receive files or attachments
    • How to deal with unexpected input
    • How to gather user feedback
    • How to track links
    • How to use WhatsApp click to chat links
    • How to accept payments
    • How to deflect calls to WhatsApp
    • How to delay replies
    • How to engage with customers using SMS
    • How to import contacts
    • How to test your WhatsApp chatbot
    • How to use Messenger m.me links
    • How to do multi-channel design

    Code How To​s

    • Code actions best practices
    • How to trigger channel specific flows
    • How to use math in a bot
    • How to create a location-aware bot
    • Create Parameters with Cloud Code Actions
    • How to use quick replies in code actions
    • How to add a delayed opening to the web widget
    • How to build a chatbot quiz for WhatsApp
    • How to catch API errors within Code actions
    • How to verify user input
    • How to check if an object property is undefined
    • How to create a dynamic opening based on the part of t…
    • How to create a Dynamic URL
    • How to create a Webview
    • Handle images in 3 steps
    • How to retrieve data from a database
    • How to connect with an external database
    • How to route back to the last flow
    • How to route your chatbot based on numeric input
    • How to send a confirmation email
    • How to send chatbot data to a database
    • How to send emails to multiple recipients
    • How to create Google maps images
    • How to use QR codes
    • How to use Javascript Comments in actions
    • How to send emails
    • How to store Parameters
    • How to capture and validate an address
    • How to find your Organization ID
    • How to work with dates
    • How to integrate with Wordpress
    • How to check if the user is on mobile or desktop
    • How to trigger bot events based on the page
    • How to combine functions in Javascript
    • How to set profile attributes

    Handover How To​s

    • Fallback
    • Chatbot Handoff How to nail the bot to human handoff
    • How to pause and resume a bot in Front
    • How to Enable or Disable Push Notification
    • How to hand over to a human agent
    • Send text versus trigger event
    • How to setup handoff with Front
    • THow to trigger flows inside Front

    Other

    • Audience
    • Projects
    • Analytics
    • Data retention

How to set profile attributes when a user is anonymous

Set profile attributes and personalize the experience

Are you customers using your chatbot but you have no idea who that customer is? Well, there are different ways to get to know your customer and make the customer experience more personal.

When a customer visits your page that the user is Anonymous in most cases. An expectation might be the user is logged in into their personal account. If that’s the case you can already pass that information into your chatbot by setting a custom originator. When there’s no login option still there’s a way to personalize the experience.

Set profile

In the example below, we show you how to ask the user for information and add that to his or her profile. Instead of being Anonymous, you will now have a name added to the profile that you can use within your chatbot design or whenever there’s a handoff to a human colleague.

1. Ask for user input

Within your flow the first step is to ask the user for input. In this case we want to know the name of the user so we ask something like “What is your name?”.

2. Modify profile attributes

To use the input of the user we can use the Any Text trigger to store that input into a parameter (or variable). When that value is available within a parameter we can use it later on in our conversation and we can use it to change the profile attributes. To change those attributes the only thing we need to do is to change the name of the parameter to any of these:

  • user.name
  • user.firstName
  • user.lastName
Set profile user name

In our example, we set the attribute user.name to the user input.

3. Follow up with a personalized experience

You can now follow up with a bot reply that uses that information or you can hand the conversation off to an agent that will immediately see the name of the user.

Personalize the experience
← How to combine functions in JavascriptFallback →
  • 1. Ask for user input
  • 2. Modify profile attributes
  • 3. Follow up with a personalized experience
Docs
Getting StartedBasic conceptsGuides
Platform
StatusSlack community
Resources
Blog
Copyright © 2021 Khoros Flow