Company logo
November 15, 2022

Bulk add metadata

Thomas Kainrad's avatar

Now, it's possible to add multiple pieces of metadata at once with addMetadata. Doing this, it's easy to push a bunch of data about a user or their account into CommandBar so that CommandBar can react with nudges, recommendations, or questlists.

If you have a JavaScript object that contains data about your users, simply pass that to addMetadata to have CommandBar start reacting to changes in those variables (after you connect the variables to commands, nudges, etc. of course).

Read more about the change in our SDK docs.