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.

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 Types
MaiAgent's contact system has two types, based on how the user's identity is recognized:
Contact Type Comparison
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
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:
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) ⬇️


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
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):


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

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.
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.
You can click Add Contact to open the edit page and enter the information:


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

Basic Information Fields
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.
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:
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:
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
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
Go to Contacts, click Bulk Import, and download the template from the Bulk Import Contacts window.

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.

Upload the completed .xlsx and click Preview Import.
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.

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"
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?