User object varible for new user?


#1

Greetings,

Is there a variable in the Jovo User Object that identifies said user as a new one?

So far what i’ve done is create a session variable when the intent NEW_USER is called and that way the skill knows the user is new in every intent during said session. My question is, is there a better way to accomplish this?.

I tried logging the whole user object but i didn’t find what i was looking for, maybe i missed it.

Thanks in advance.


#2

Jovo looks in the database if the key (the User ID) is available.

You can use this.$user.isNew() to check if it’s a new user.


#3

i completely forgot about this method, thank you so much.


#4

No problem! Closing this now


closed #5