Creating the AI Connector Permission Set
The AI Connector permission set controls access to the chat container. Without it, you cannot open the chat or interact with any agent. Access to individual agents is controlled separately by a custom permission for each agent, shipped by the agent's owning package. For more information, see Granting Access to an Agent.
This permission set also gives chat users the read access an agent needs to retrieve its flex instructions. Without Read on the Flex Instruction object and its fields, an agent cannot retrieve its instruction and the conversation fails. Authoring access to flex instructions is granted separately, through the AI Connector - Manage Flex Instructions permission set. For more information, see Creating the Flex Instructions Permission Set.
To create this permission set, you or your administrator must perform the following steps.
Create the Permission Set
To create the permission set:
- Navigate to Setup | Permission Sets.
- Click New.
- Enter the following permission set information:
| Field | Value |
|---|---|
| Label | AI Connector - Use AI Agent |
| API Name | haibase_AgentUser |
| License | None |
- Click Save.
Grant Apex Class Access
To grant Apex class access:
- From the permission set, click Apex Class Access under Apps.
- Click Edit.
-
Find the following in the Available Apex Classes list and move them to Enabled Apex Classes:
- haibase_AgentCallbackResource
- haibase_AgentToolsAuditResource
- haibase_AgentToolsResource
- haibase_ChatController
- haibase_FlexInstrResource
- haibase_UserContextController
- Click Save.
Set User Permissions
To set user permissions:
- From the permission set, click User Permissions under System.
- Click Edit.
- Enable Apex REST Services.
- Click Save.
Set Object Permissions
To set object permissions:
- From the permission set, click Object Settings.
- Click Chat Sessions (Chat_Session__c).
- Click Edit.
- Set the following permissions:
| Permission | Setting |
|---|---|
| Read | Enabled |
| Create | Enabled |
| Edit | Enabled |
| Delete | Not enabled |
| View All | Not enabled |
| Modify All | Not enabled |
- Navigate to Object Settings, click Chat Messages (Chat_Message__c), then click Edit.
- Set the same permissions as above and click Save.
- Navigate to Object Settings, click Flex Instructions (Flex_Instruction__c), then click Edit.
- Set the following permissions:
| Permission | Setting |
|---|---|
| Read | Enabled |
| Create | Not enabled |
| Edit | Not enabled |
| Delete | Not enabled |
| View All | Not enabled |
| Modify All | Not enabled |
- Click Save.
Set Field Permissions
Within Object Settings, you must enable field access on each of these objects.
Chat Sessions
To set field permissions on Chat Session:
- Click Chat Sessions in Object Settings.
- Scroll to the Field Permissions section and click Edit.
- Find User (User__c) and enable both Read Access and Edit Access.
- Click Save.
Chat Messages
To set field permissions on Chat Message:
- Click Chat Messages in Object Settings.
- Navigate to Field Permissions and click Edit.
- Set the following permissions:
| Field | Read Access | Edit Access |
|---|---|---|
| Approval Outcome (Approval_Outcome__c) | Enabled | Enabled |
| Current Phase (Current_Phase__c) | Enabled | Not enabled |
| Display in Chat (Display_In_Chat__c) | Enabled | Enabled |
| Message Content (Message_Content__c) | Enabled | Enabled |
| Response Feedback (Response_Feedback__c) | Enabled | Not enabled |
- Click Save.
Flex Instructions
To set field permissions on Flex Instruction:
- Click Flex Instructions in Object Settings.
- Navigate to Field Permissions and click Edit.
- Set the following permissions:
| Field | Read Access | Edit Access |
|---|---|---|
| Active (Active__c) | Enabled | Not enabled |
| Instruction Text (Instruction_Text__c) | Enabled | Not enabled |
- Click Save.
Set Tab Visibility
Tab visibility controls whether users can open the Veda page.
To set tab visibility:
- From the permission set, click Object Settings.
- Click Veda (haibase_Veda).
- Click Edit.
- Set the Tab Settings to Visible.
- Click Save.
Assign the Permission Set to Users
To assign the permission set to users:
- Return to the permission set and click Manage Assignments.
- Click Add Assignments.
- Select your required users and click Assign.
SECTIONS