How users are represented in Meya

Each user that interacts with your bot will have a user object stored in your bot's database. Your bot will likely set and get data via the user scope Meya database API.

FieldNote
id
string
The Meya defined id. This is an immutable unique identifier. ex UdlY77V2tnl
user_id
string
The integration-specific user identifier. For example, Messenger PSID
integration
string
Represents the integration (chat app) that the user is communicating from. See list of integrations
......
{key}
string
Of type: string, integer, float, boolean, dict, list
{
  "first_name": "Kurt", 
  "last_name": "G\u00f6del", 
  "user_id": "1115412093662003", 
  "citizenship": [
    "Austrian", 
    "American"
  ], 
  "locale": "de_AT", 
  "gender": "male", 
  "profession": "mathematician", 
  "integration": "messenger", 
  "alive": false, 
  "avatar_url": "https://upload.wikimedia.org/wikipedia/en/4/42/Kurt_g%C3%B6del.jpg", 
  "timezone": -4, 
  "id": "UrxAAGBZyud", 
  "bot_id": "BA0aelClmnU"
}

Integration-specific user id

IntegrationPlatformuser_id meaningExample user_id
messengerFacebookPSID11154120936620030
slackSlackteam id + user idT138ABGQ8.U057AEGQ1
twilioTwiliophone number in E164+15558675309
kikKikusernamekurt.godel.42
telegramTelegramchat id199277562
webMeya web chatn/an/a
testMeya test chatn/an/a
intercomIntercomIntercom defined id60a1df123b411efg7bfe91d9
smoochSmooch Web, Viber, WeChat, LINE, iOS, Email, AndroidSmooch _id (or userId if set) learn moredeb920657bbc3adc3fec7963
twitterTwitterTwitter user namepotus
webhookWebhookCustomCan be any string