Updated July 2020
The steps below are all you need to get Copilot up, running, and interacting with users, they involve creating the data Copilot uses to automatically understand and Engage with the users.
Read more at Copilot CX
Step 1 (30 min.) - Let us know when users and devices register
For Operational events, there are 3 basic APIs that should be called from your server,
Using basic authentication, here are the basics:
- When a user is registered in your system, call user_created.
- If your application is GDPR compliant, you should call the consent API as well.
- When a device is registered in your system, call thing_created.
- When a user and device are associated with one another, call user_thing_associated.
Step 2 (5 min.) - Configure Firebase
Whether in a newly created Firebase project or have one already in use, go through 6 simple Firebase Configuration steps.
Step 3 (20 min.) - Add in Copilot SDK
Step 4 (10 min.) - Tell us when the user is in the app
Now, let’s connect a couple of dots - your server lets us know when users are registered and connect to your devices.
Let us know when they use the app by calling these two API calls from your mobile apps:
- Call sessionStarted() when a user logs-in/registers, with the same user ID on your server-side to track the user’s session.
- Call sessionEnded() if a user logged out.
Step 5 (30 min.) - Test it out
- Let’s start testing by triggering a basic event, such as Onboarding started.
- If you have not yet connected your server (Step 1) You can see all your events in Firebase debug view.
- To do a complete End-to-end test:
- Run the app.
- Go to Copilot dashboard -> Support -> Main, and search for the user you played with.
- Under “User events” you will be able to see all the events you sent from the app (May take up to 1.5h due to Firebase Analytics data flows)
Step 6 (30 min.) - Know your users, devices, and everything in between
The following 3 events will enable the full set of out-of-the-box engines to run from the get-go:
- Onboarding started/ended - At the start and end of the Onboarding process, it normally starts when the user registers and ends when the device is functional, i.e. after connecting to wifi/Bluetooth, or even doing a short configuration procedure.
- Device Discovered / Connected - The more information about the status of the device, the better, especially during onboarding.
Step 7 (30 min. - 2h) - Sharing is caring
The more you share with us about your users' activity, the more accurate your analytics, campaigns, and overall understanding of your status will be.
- Add custom events for things your users are doing, like "Coffee Made" or "Door Opened", or any other activity your unique product does.
- Go through some of our recommendations and examples for some generic custom events that can be added in with a single line of code.
- To send events from your physical device, send custom events to the same endpoint used in step 1.
(Optional) Step 8 (2h) - Enable In-app Messages
This step utilizes Copilot Authentication to validate the user, in order to present In-app messages tailored for his Journey.
On Server side, implement an API that can be called by an authenticated user to generate an Auth-token.
This, in turn, can be used by your Mobile application to implement and use in a CopilotTokenProvider.
Contact your customer success manager / sales representative for a short Q&A