Automatically assign a Team to your Contacts

Automatically assign a Team to your Contacts

Written by Grace Williamson
Last update: Friday, Dec 20, 2024

If you want to directly assign a Team to your Contacts without having them to chose one by themselves, you can initialize the widget with the usergroup_id parameter.


Some use cases:

  • Logged-in side: Team “customer/support”

  • Registration funnel: Team “leads”

  • Blog: Team “advice community”

  • Product page: Team “pre-sales”


Find your user group id

Go to the "Routing" page. By selecting a team, you will see its ID in the URL after team#. This is the ID you will need to use as a value for usergroup_id.


Initialize Slaask with the user group:

window._slaaskSettings = {
  options: {
    usergroup_id: ____
  }
  key: "your-public-key",
};

REST API - Contacts

6 articles in this category.
Written by Grace Williamson.