Connect with your App

You can connect Alice with your own app and provide customer support through the in app chat functionality.

In App Chat is a communication channel for Alice. It can be embedded into a mobile app.

Creating the Channel

  1. Create a In App Chat channel/platform from Dashboard > Settings > Platform Settings.

  2. Provide a Name and Primary Color for the Channel.

  3. Then connect the Channel.

  4. It will then create a Token and API URL that looks like: https://live-v3.getalice.ai/api/bots/get_app_url?platform_id={platform_id}&primary_id={primary_id}

Integrate the Channel

  1. Perform a GET request to the API URL to fetch the url for chat window.

  2. Load the url in App Browser. Ref: https://developers.google.com/web/android/custom-tabs

User Management

  1. There will basically be two types of user. Guest user and Signed up user. Signed in users will be recognised by either email or phone number. And the conversation history will be synchronised.

  2. Keep several optional fields for customer attributes. Also, a user_meta field to provide extra information about customers to save in customer_meta.

post
Get App URL

https://live-v3.getalice.ai/api/bots/get_app_url
This API will provide the URL that you need to open in your in-app browser.
Request
Response
Request
Headers
Token
optional
string
You will get this from Alice Dashboard
Body Parameters
user_meta
optional
object
This is to pass any parameter that can be used from Alice.
user_phone
optional
string
Phone to verify logged-in user.
user_email
optional
string
Email to verify logged-in user.
user_name
optional
string
User Name to be stored in customer.
primary_id
required
integer
You will get this from your dashboard.
platform_id
required
integer
You will get this from your dashboard.
Response
200: OK
{
url: "https://inconnect-inapp-webview.netlify.app?customer_id=<int>&platform_id=<int>&primary_id=<string>&token=<string>"
}