Docs

A program from scratch

How to launch a new program — a project, a customer field, a consent, an interaction type, an API client and users.

A program in Btlify CRM is put together from settings, with no development work. In this guide Nordtone launches a “Service club”: customers bring their devices in for service, the service desk app records the visits, and staff see them in the admin panel. By the end the program has its own project, a new customer field, a consent to the club terms, an interaction type, an API client and users with access to the project. Every step is done by a role with the “Settings → All settings, users and roles” permission — only the system “Administrator” role has it.

What you need

  • To be signed in as a user with the “Administrator” role — settings sections are visible to it only (Roles).
  • The catalogs the program needs, if fields or items will take their values from them (Catalogs). The example needs no new catalogs.

Project

A project keeps the program's interactions apart from the rest and defines where apps and staff work.

  1. Open Settings → Projects and press New project.
  2. Enter the code service-club and the name “Service club”.
  3. Press Create project.

The project code can't be changed after creation: apps pass the project by it in their requests. More in Projects.

Customer field

Customers are shared across the whole organization, so the new field appears on every customer, not only on club members.

  1. Open Settings → Schema, the Customer tab, and press New field.
  2. In Code enter contact_preference; in Label enter “Удобный способ связи” and “Preferred contact”.
  3. In the Type list choose “Choice”.
  4. In the Choices block add three choices with Add choice: sms — “Text message”, email — “E-mail”, call — “Phone call”.
  5. Press Create field.
New customer field form “Preferred contact”: code, labels in two languages, the “Choice” type and three choices

The field shows up right away in the customer form and list and in the API schema. Required fields, rules and visibility by role are covered in the Fields and types guide and on the Schema page.

  1. Open Settings → Entity types, the Consent types tab, and press New type.
  2. Enter the code service_terms and the label “Service club terms”, then press Create type.
  3. Open Settings → Consents and press New version.
  4. In the Consent type list choose “Service club terms”; in Effective from keep today's date or enter the launch date.
  5. Enter the terms in English and, if you like, in Russian, then press Publish version.

Until the type has an effective version, no consent can be recorded against it. A published text never changes: a new wording is a new version (Consents).

Interaction type

  1. In Settings → Entity types open the Interaction types tab and press New type.
  2. Enter the code service_visit and the label “Service visit”.
  3. In the Projects block check “Service club”.
  4. In the Required consents block check “Service club terms”.
  5. Press Create type.

From now on a visit isn't recorded unless the customer has a valid consent to the club terms or it arrives in the same request. Add the visit's fields — say, the fault and the repair cost — on the “Service visit” tab of the Schema section, as in the Fields and types guide. The type's other settings are on the Entity types page.

API client

Visits are recorded by the service desk app, so it needs a token of its own.

  1. Open Settings → API clients and press New API client.
  2. In Name enter “Service desk”.
  3. Check the abilities the app needs: for example, schema:read, customers:read, customers:write, consents:read, consents:write and interactions:write.
  4. In the Projects block check “Service club”.
  5. Press Create and issue token and copy the token straight away with Copy.

The token is shown only once — hand it to the integration developers over a secure channel (API clients).

Users

A role scoped to “Assigned projects” — such as the system “Operator” role — sees interactions of assigned projects only, so the new project has to be assigned to its users.

  1. Open Settings → Users.
  2. For a new colleague press Invite and enter the name, e-mail and role. For an existing one open their form, for example “Sarah Collins”.
  3. In the Projects block check “Service club”.
  4. Press Send invitation or Save.

Users whose role covers “All projects” see the new project straight away. If you need a role with its own set of permissions, create one with the Custom role guide.

Check the result

  • The project switcher in the header now lists “Service club” (Projects).
  • The Customers → New customer form has a “Preferred contact” field with three choices.
  • In the Consents section “Service club terms” has current version 1.
  • A GET /me request with the “Service desk” token returns its abilities and the service-club project. The app's first visits show up in Interactions with “Service club” selected in the switcher.

What's next

The program's logic is added with the same settings: