For the complete documentation index, see llms.txt. This page is also available as Markdown.

Contacts

What contacts are: data cards that record end-customer identity and permissions, with a comparison of contact types, setup, permission management, and automation integration.

What Is a Contact?

A Contact is one of MaiAgent's core features, functioning like an enterprise's "customer card file." It lets businesses create a dedicated identity profile for each customer, so every conversation can deliver a personalized service experience.

In simple terms:

A contact is like a "customer data card" that records the customer's identity and permissions. When a customer visits, the Agent uses this card to decide which services and content to provide.

Identity recognition example

Imagine a customer interacting with you through the website chat window. The system can immediately recognize "This is Mr. Zhang, a VIP member" or "This is a new visitor who can only access some documents," and provide the corresponding service content and permissions.

Why Do You Need the Contact Feature?

Personalized Service Experience

Every customer has unique needs and a unique background. The contact feature lets the Agent:

  • Remember the conversation history with that customer

  • Provide appropriate information based on the customer's identity

  • Avoid asking again for information it already knows

Precise Permission Management

Different customers should see different content:

  • VIP members can view exclusive offers

  • Regular members see standard service content

  • Visitors can only use public information

Data Security Protection

  • Ensures customers can only access their own data, preventing information leaks.

How Do Contacts Work?

When a user opens the chat window, the conversation request is sent to the enterprise's internal system for processing, which determines whether member information has been passed in. Based on the result, the system finds or creates a contact (anonymous or non-anonymous). Whichever path is taken, a personalized conversation begins, ensuring every user gets a personalized experience.

Contact workflow diagram

Contact workflow diagram

Contact Types

MaiAgent's contact system has two types, based on how the user's identity is recognized:

In simple terms:

  • Anonymous contact = a visitor who is not logged in; the system does not know who they are

  • Non-anonymous contact = a logged-in member; the system knows their identity and data

Contact Type Comparison

Item
Anonymous Contact
Non-Anonymous Contact

When It Applies

Visitors who enter directly from a web page without logging in to the enterprise member system, so there is no account from which to retrieve user data

Members who are logged in, or who enter through another platform account (such as Facebook or LINE); the system can obtain the user's name and account information

Identity Recognition

No specific personal information can be obtained

Has clear identity information (such as name and profile picture)

System Setting

Set to "Anonymous" within the MaiAgent system

The original member account ID is converted into a Source ID

Permission Management

Knowledge base file permissions, channel management

Same for both

Data Mapping

No Source ID, so the contact cannot be mapped to enterprise member data

The Source ID ensures the contact is always mapped to the correct user

How It Is Created

When a visitor (without member identity) enters, a new anonymous contact is automatically created for each conversation

Automatically created or updated through the MaiAgent API based on member login information For integration details, see: Technical Handbook—Contacts: Introduction and Integration

Record Keeping

The system records the user's conversation history based on cache

Conversation continuity is maintained through the Source ID and contact mapping

Why the Source ID (Source ID) Matters

The Source ID is the key bridge between a MaiAgent contact and the enterprise member system. When users interact with the enterprise through different channels (website, app, social platforms), the system can correctly recognize the user's identity through the Source ID, ensuring conversation continuity and a personalized experience.

In simple terms: The Source ID is like a "member number" that lets the system recognize the same customer across different platforms.

Set Up Contacts

Contact List Filters and Columns

Go to Customer Conversations → Contacts from the left menu. At the top of the list you can search contacts (by name), filter by channel type (first choose a type such as Web or LINE, then choose a specific channel), and filter by tag. In the upper right are Tag Management, Bulk Import, Add Contact, and Refresh. The columns are:

Column
Description

ID

The contact's identifier, used by the API and by Source ID login-free conversations

Contact

Avatar and name; anonymous users show a system-generated name

Phone Number

Imported from the messaging platform or entered manually

Channel

Which channels this contact appears in

Source ID

The user identifier from the enterprise or messaging platform; see Non-Anonymous Users

Query Metadata

Limits the range of documents this contact can query; see Query Metadata

Tags

Applied contact tags

Created At, Last Updated

Actions

Edit, delete (you are asked to confirm before deleting)

After selecting multiple contacts, "N contacts selected" appears at the top along with Bulk Add Tags / Bulk Remove Tags; see Tag Contacts.

Anonymous Users

When a user starts a new conversation, the system automatically creates a new anonymous user in the background (each conversation is one anonymous user) ⬇️

Contact list: one row per visitor, with anonymous visitors shown as anonymous; columns are ID, Contact, Phone Number, Channel, and Source ID
Contact list: Web Chat visitors without a Source ID are shown as "Anonymous"

The record includes the contact ID, channel history, creation time, and more.

You can click Edit to manually edit the anonymous contact's information:

By editing, you can:

  • Link member information: enter a Source ID to link the anonymous contact to member data

  • Update the permission level: open up or restrict the range of documents they can read

  • Add basic details such as the customer's name and contact information

Non-Anonymous Users

If Web Chat has both login and the data collection form enabled, the form data entered by a logged-in user is tied to their login account, so they do not have to fill it in again on another device. For details, see Web Chat Overview: Data Collection (Pre-chat Form).

When a user enters through another channel (such as LINE, FB Messenger, or Telegram):

The back end automatically creates the corresponding non-anonymous user based on the user's FB information (including Source ID, contact name, profile picture, and more):

Contact list filtered by channel, where every contact has a name and a Source ID
Filtered by channel: contacts with a Source ID show their names

You can still click the Edit button to edit the non-anonymous contact's information.

Basic Information tab of the Edit Contact window: name, avatar, phone number, email, channel, and tags, with additional tabs above for Custom Properties, API Credentials, MCP Credentials, and Connector Authorizations
Edit contact: Basic Information tab

By editing, you can:

Complete and correct data

  • Correct the Query Metadata settings (update the open range according to permissions)

  • Change the Source ID within the enterprise to link the correct contact information and member information

Add a Contact

The Add Contact feature is mainly used to proactively create customer profiles with preset permissions. If you have not specified a permission scope in Web Chat, you can create the contact in advance and complete the permission configuration and service preparation before the customer actually starts a conversation.

To specify the permission scope with a JavaScript snippet when initializing Web Chat, see: Technical Handbook: Getting Started—Using JSON Format

Core Features

By creating contacts manually, system administrators can set up user profiles for specific identities in the customer service system in advance and configure the corresponding Query Metadata permissions. When these pre-created contacts later interact with customer service through a specified channel, the system uses its automatic Source ID matching mechanism to immediately apply the preset permission level, ensuring they can access data appropriate to their identity.

In simple terms:

It is like "preparing the customer's permission settings ahead of time." When this customer visits for the first time, the system already knows what data they can and cannot see.

You can click Add Contact to open the edit page and enter the information:

The Add Contact button in the upper right of the contact list
Click "Add Contact" in the upper right of the contact list

On this page, you can enter the contact's name, specify channels, and more:

Basic Information Fields

Field
Description

Avatar, Name

The display name customer service sees in "All Conversations"

Email, Phone Number

Contact details, shown in the "Contact Information" section of the conversation details; Email is also what bulk import uses to match existing contacts

Channel

Which channels this contact belongs to; multiple selections allowed

Source ID

The contact's identifier in an external system, used for Source ID login-free access and for bulk import matching

Tags

Apply one or more contact tags

Query Metadata

Controls which documents this contact can retrieve from the knowledge base. You can enter JSON directly or switch to the Query Builder to build conditions through the interface; see Query Metadata and Query Builder

Other tabs in the edit window: for MCP Credentials and API Credentials, see Contact MCP Credential Setup and Set API Credentials for Each Contact; Connector Authorizations and Custom Properties are described below.

Custom Properties

The Custom Properties tab lets you add any "property name = value" pairs to a contact, such as membership level, account manager, or contract number. These properties appear in the "Contact Information" section of the conversation details in "All Conversations," so customer service can see the background information right away when taking over.

  • Click Add Property and fill in the Property Name and Value (names must be unique). On the right side of the list you can edit or Delete Property.

  • The JSON Preview below shows the JSON of all current properties, making it easy to check when integrating with other systems.

The custom properties here belong to the contact (the external customer), which is different from the Custom Attributes on an organization member's "Profile" page. Custom properties are only for customer service to see and do not affect the knowledge base retrieval scope. To limit the documents a contact can query, use "Query Metadata."

Connector Authorizations

When an Agent has an MCP tool that requires individual authorization from each contact (for example, the Google Workspace connector; see Create an MCP Tool), the contact completes OAuth authorization within the conversation. The Connector Authorizations tab lists this contact's authorization status for each connector:

Field
Description

Status

Valid, Expired, Revoked, or Not Authorized

Expires At, Last Used

The authorization's validity period and the last time a tool used it

Scopes

The permission scopes the contact agreed to

Actions:

  • Revoke: Revokes the authorization immediately. The contact must authorize again the next time they use the tool. Use this when a contact asks to cancel access or an account may have been compromised.

  • Trigger Re-authorization: Marks the current authorization as invalid, so the contact is asked to authorize again the next time they use it. Use this when the scopes have changed and the contact needs to consent again.

  • No manual action is needed when the status is "Expired": once the access token expires, it is refreshed automatically at the next actual Q&A, and the contact does not need to authorize again.

When there are no authorizations, "This contact has not authorized any Connector" is displayed.

Contact Tags

Contact tags are applied to people (for example "VIP," "Distributor," "North Region"). They are used to categorize contacts and to find conversations in "All Conversations" with Filter by Contact Tag. They are separate from the conversation tags applied to conversations: conversation tags are managed per channel, whereas contact tags are a single list shared across the whole organization.

Tag Management Page

Go to Customer Conversations → Contacts and click Tag Management in the upper right to open the tag management page, where you can add, edit, and delete contact tags for the whole organization:

  • Add Tag: Enter a Tag Name (up to 50 characters) and confirm.

  • Edit Tag: Renaming affects all contacts that already have this tag, so there is no need to reapply it one by one.

  • Delete: After confirmation, the tag is automatically removed from all contacts, and a message such as "N contacts affected" appears when it finishes.

Tag Contacts

You can apply tags in three places:

Location
How

Contact edit window

Select tags in the Tags field of Basic Information

Bulk actions in the contact list

Select multiple contacts, click Bulk Add Tags or Bulk Remove Tags at the top, choose one or more tags under "Select Tags," and confirm. A message such as "N contacts updated" appears when it finishes

Details panel in All Conversations

Add or remove tags directly in the conversation's Contact Tags section; see Conversation Details

At the top of the contact list you can filter by tag, and combine it with filter by channel type and search to quickly find a group of contacts and then tag them in bulk.

Bulk Import Contacts

When you need to create or update many contacts at once, you can first preview the estimated counts and channel assignment, then confirm the import. The preview does not write any data; the import runs only after you click Confirm Import.

Use Case

A customer service supervisor wants to import a list of event contacts, some of whom already belong to the after-sales service channel. She chooses Merge, uploads the completed template, checks the estimated numbers of contacts to be created and updated, and then confirms the import. The existing after-sales assignments are kept, and the event channel selected this time is added, which avoids overwriting existing associations in bulk.

Prepare the Import File

Use the Excel template (.xlsx) downloaded from within the window. The file must be smaller than 10 MB and have at most 10,000 rows. Name, Email, and Source ID are required; Phone Number is optional.

The system matches contacts by Source ID and Email; Email matching is case-insensitive. If an existing contact is found, its name and phone number are updated. If the same file contains duplicate matching data, only the first entry is used.

Import and Preview

1

Go to Contacts, click Bulk Import, and download the template from the Bulk Import Contacts window.

The Tag Management, Bulk Import, and Add Contact buttons in the upper right of the Contacts page
Open Bulk Import from the upper right of the Contacts page.
2

Select at least one channel and set the inbox assignment:

  • Replace (default): This selection becomes the complete channel list for these contacts, and existing associations that are not selected are removed.

  • Merge: Keeps existing associations and only adds the channels selected this time.

Bulk Import Contacts window: Step 1 download the template, Step 2 choose channels and inbox assignment (Replace or Merge), Step 3 upload the file
Bulk Import Contacts: download the template, choose channels and inbox assignment, then upload the Excel file.
3

Upload the completed .xlsx and click Preview Import.

4

In Import Preview, check the estimated "To be created" and "To be updated" counts, the file name, the channels, and the assignment mode. To make changes, click Back to Edit; once everything looks correct, click Confirm Import.

Bulk import preview showing the numbers of contacts to be created and updated
Check the estimated create/update counts and the assignment mode before running the import.

If the preview shows that there is no data to create or update, go back and check the template contents. If the import fails, the system keeps the settings screen and displays an error; fix the file and preview again.

Permission Management

Depending on your enterprise's needs, you can use Query Metadata to limit the range of documents different contacts can use, for example:

Restrict by Membership Level

  • VIP members: Can query all knowledge bases, premium FAQs, and product technical documents

  • Regular members: Can only query basic FAQs and product user manuals

  • Visitors: Can only query public FAQs and basic product introductions

Restrict by Department Permission

  • Internal employees: Can query internal operation manuals, system maintenance documents, and complete product information

  • Distributors: Can query product specifications, price lists, and sales materials

  • General customers: Limited to usage instructions, FAQs, and warranty information

Restrict by Product Tag

  • Enterprise edition users: Can query documents tagged "Enterprise Features" and "Advanced Settings"

  • Personal edition users: Can only query documents tagged "Basic Features" and "Personal Use"

  • Trial users: Can only query content tagged "Trial Guide" and "Getting Started"

To learn more about Query Metadata, see: Knowledge Management Permissions: Query Metadata

When setting Query Metadata for a contact, the system only authorizes settings for the knowledge bases of the channels you have specified. If you configure settings for the knowledge base of another channel, the following warning message appears:

Automation Integration

For technical teams, MaiAgent also provides API endpoints that integrate seamlessly with the enterprise's existing systems.

Regardless of the size of your organization, the contacts feature helps you deliver a better customer service experience while keeping data secure and operations efficient. Through classified management of anonymous and non-anonymous contacts, a precise Source ID mapping mechanism, and flexible creation methods, enterprises can provide the most suitable service experience for different types of users and be fully prepared before customer interactions begin.

Last updated

Was this helpful?