Standard Attributes

Prev Next

Standard attributes are the user, company and event attributes Userflow records for you, such as Signed Up, Last Seen and the IDs on each flow event. This page lists them, explains where your own attributes come from, and covers attribute limits. Use attributes in auto-start conditions, segments and charts.

Where your attributes come from

Attributes reach Userflow two ways, and you don't have to choose between them.

Sent from your app. Any attribute you pass in userflow.identify(), userflow.group() or the API is created automatically the first time Userflow sees it. You don't need to create it first, and there's no list to add it to. Send plan_tier today and it's there today, ready to use in conditions and segments. Company attributes are covered in Configuring companies.

Created by hand. You can also create an attribute up front in Settings → Attributes, before anything has been sent. This is useful when you want the display name, description and data type set correctly from the start rather than inferred, or when you're building a segment against an attribute your app doesn't send yet.

If an attribute is already in your list, it's already been created. Seeing it there means Userflow has received it. You don't need to create it again, and creating a second one with the same name won't do anything useful.

Creating an attribute by hand

  1. Select Settings > Attributes from the sidebar.

  2. Click New attribute.

  3. Under Object, choose what the attribute belongs to: User, Company, Company membership or Event.

  4. Enter a Display name and a Code name. The code name is the key your app and the API use, for example plan_tier.

  5. Optionally, add a Description.

  6. Choose a Data type. For what each type means, see Choosing an attribute data type.

  7. Click Create attribute.

You can change an attribute's display name and description at any time. The code name (also called the field key) can't be changed once the attribute exists, so if you need a different one, send or create a new attribute and migrate to it.

Choosing an attribute data type

The Data type menu in Settings > Attributes uses different names from the Userflow.js and API developer docs. For example, a string attribute in the developer docs is called Text in the app. The New attribute dialog offers these data types:

Data type in the app

Name in the developer docs

Use it for

Text

string

Any text value, such as a plan name, a country code or a URL

Number

number

Counts, scores and other numeric values

Datetime

datetime

Dates and times, sent as ISO 8601 strings

True/false

boolean

Yes or no values, such as is_admin

List

list

Several values at once, such as a set of roles or permissions

Random A/B

Set in the app only

A/B tests. Userflow gives each user an A or B value at random. See A/B testing.

Random number

Set in the app only

Split tests with more than two groups. Userflow gives each user a random number in a range you choose. See A/B testing.

Storing a link in an attribute. Userflow has no separate URL, link or HTML data type. To store a link in an attribute, choose Text and send the full URL as the value.

To send each data type from your code, see Attribute data types in the Userflow.js developer docs.

Userflow Attributes

Attributes for the Adoption Agent still use the earlier name in their display names and keys, for example Assistant Conversation (assistant_conversation_id). They record Adoption Agent conversations and messages. Use the keys as shown; they haven't been renamed.

Category

Display Name

Field Key

Data Type

Description

User

Email

email

string

User's email address

User

First Seen

first_seen_at

datetime

When the user was first seen by Userflow

User

Last Seen

last_seen_at

datetime

When the user was last seen by Userflow (the latest user interaction)

User

Name

name

string

User's full name

User

Signed Up

signed_up_at

datetime

When the user first signed up in your app

Company

Company First Seen

company_first_seen_at

datetime

When a member of the company was first seen by Userflow

Company

Company Last Seen

company_last_seen_at

datetime

When a member of the company was last seen by Userflow

Company

Company Name

company_name

string

Company's name

Company

Company Signed Up

company_signed_up_at

datetime

When the company was first signed up in your app

Event

Announcement Comment

announcement_comment

string

Userflow announcement comment

Event

Announcement ID

announcement_id

string

Userflow announcement

Event

Announcement Name

announcement_name

string

Userflow announcement name

Event

Announcement Reaction

announcement_reaction

enum (positive,neutral,negative)

Userflow announcement reaction

Event

Announcement Version ID

announcement_version_id

string

Userflow announcement version

Event

Announcement Version Number

announcement_version_number

integer

Userflow announcement version number

Event

Assistant Conversation

assistant_conversation_id

string

Userflow Adoption Agent conversation

Event

Assistant ID

assistant_id

flow

Userflow Adoption Agent

Event

Assistant Message

assistant_message_id

string

Userflow Adoption Agent message

Event

Assistant Message Rating

assistant_message_rating

enum (like,dislike)

Userflow AI message rating

Event

Assistant Message Scale Max

assistant_message_scale_max

integer

Max possible CSAT score

Event

Assistant Message Scale Rating

assistant_message_scale_rating

integer

CSAT rating

Event

Assistant Name

assistant_name

string

Userflow Adoption Agent name

Event

Assistant Version ID

assistant_version_id

string

Userflow Adoption Agent version

Event

Assistant Version Number

assistant_version_number

integer

Userflow Adoption Agent version

Event

Banner ID

banner_id

string

Userflow banner

Event

Banner Name

banner_name

string

Userflow banner name

Event

Banner Session ID

banner_session_id

string

Banner session

Event

Banner Version ID

banner_version_id

string

Banner version

Event

Banner Version Number

banner_version_number

integer

Banner version

Event

Checklist ID

checklist_id

string

Userflow checklist

Event

Checklist Name

checklist_name

string

Userflow checklist name

Event

Checklist Session ID

checklist_session_id

string

Checklist session

Event

Checklist Start Reason

checklist_start_reason

string

Why checklist started

Event

Checklist End Reason

checklist_end_reason

string

Why checklist ended

Event

Flow ID

flow_id

string

Userflow flow

Event

Flow Name

flow_name

string

Userflow flow name

Event

Flow Session ID

flow_session_id

string

Flow session

Event

Flow Start Reason

flow_start_reason

string

Why flow started

Event

Flow End Reason

flow_end_reason

string

Why flow ended

Event

Flow Step Name

flow_step_name

string

Flow step

Event

Flow Step Number

flow_step_number

integer

Flow step number

Event

Page URL

page_url

string (URL)

URL where event happened

Event

Text Answer

text_answer

string

Free-form response

Event

Number Answer

number_answer

number

Numeric response (NPS, ratings)

Event

List Answer

list_answer

array<string>

Multi-select answers

Event

Viewport Width

viewport_width

integer

Browser width

Event

Viewport Height

viewport_height

integer

Browser height

Can I see a user's operating system, browser or device?

Not as a standard attribute. Userflow does not collect the operating system, browser or device type, so there is nothing to target on or report against out of the box. The only values Userflow records about the user's environment are viewport_width and viewport_height, both event attributes.

Viewport width is often enough for the thing people are actually after. If you want a Flow to behave differently on a narrow screen, target on viewport_width rather than on device type.

If you need the operating system or browser itself, send it from your app as a custom attribute on identify(). It will appear in Userflow automatically, the same as any other attribute you send.

How date attributes populate

  • First Seen / Last Seen (first_seen_at / last_seen_at) are set automatically by Userflow. First Seen is stamped the first time a user is identified; Last Seen updates on each later identify/interaction. You don't send these.

  • Signed Up (signed_up_at) is supplied by you — pass it in your userflow.identify() call as an ISO 8601 datetime string (for example, new Date(...).toISOString()). If you don't send it, it stays empty.

Filter users by First Seen, Last Seen or Signed Up

You can use First Seen, Last Seen and Signed Up anywhere attribute conditions appear, such as segments, auto-start conditions and analytics filters, with operators such as is before, is after and less than … days ago. Example: a segment of users last seen more than 30 days ago (useful for re-engagement) filters on last_seen_at "is before" 30 days ago.

Matching a date that recurs every year

Date operators compare against a fixed point in time, so they work for "signed up before March", not for "today is their birthday". A date of birth sits permanently in the past. Only its month and day matter, and there's no operator that reads just those.

To target a recurring date, send the comparison from your app as its own attribute rather than trying to derive it in Userflow:

  • Simplest: send a boolean, for example is_birthday_today, set by your app when it runs its daily job. Then target on is_birthday_today is true. Your app already knows the date, so the logic sits where it's cheapest.

  • More flexible: send the month and day as a string, for example birthday_md with a value of 03-14. You can then match a specific day, or a range, without recalculating anything daily.

Either way, remember the flow's frequency settings. An anniversary flow that can only start once will fire the first year and never again, so set it to start on a recurring basis if you want it every year. See Understanding flow dismiss, snooze, and restart.

How many users logged in or were active recently?

This is the most common thing people use last_seen_at for, so it's worth being precise about what it does and doesn't tell you.

last_seen_at is not a login event. It records the last time Userflow saw the user, which means the last time Userflow.js loaded and userflow.identify() ran. That usually happens when someone logs in, but it also happens on every page load in an existing session, and it won't happen at all on pages where Userflow.js isn't installed. Treat it as "last active" rather than "last logged in".

To count active users:

  1. Go to Users in the sidebar.

  2. Click Add filter and choose Last Seen.

  3. Select less than and enter the number of days, for example 30 days ago.

  4. The user count on the filtered list is your answer. Save it as a segment if you want to track it over time.

Use a number of days, not a fixed date. A fixed date such as "after 28 September" makes the window wider every day, so it doesn't give you a rolling count.

The count covers the environment you're in. Userflow counts MAUs across all your environments over a rolling 30 days, so to compare with your MAU count, run the filter in each environment and add the totals. See How Userflow Tracks and Bills Monthly Active Users (MAUs).

To break that down by plan, region or any other attribute, build a Usage chart and add a Group By. See Chart Builder: Group By.

If you need actual logins, track them as an event instead. Send userflow.track('logged_in') from your app at sign-in, or set up a no-code event tracker on your login flow. An event gives you a real count of sign-ins, including several by the same person on the same day, which last_seen_at can't distinguish. See No-code event tracking.

Attribute limits

Userflow enforces three hard limits on attributes. They apply to user and company attributes alike.

Limit

Value

Attributes per user or company

1,500

Characters per attribute value

5,000

Characters per attribute name

100

List attributes are measured as a whole. The 5,000-character limit is the combined length of every item in the list, not the length of each item. A list of 200 codes at 30 characters each comes to 6,000 characters and will hit the limit, even though no single item is anywhere near it.

If you are modelling something that grows over time, such as a per-user entitlements or permissions list, size it against these numbers before you build on it.