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.
Creating 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.
Granting Apex Class Access
To grant Apex class access:
- From the permission set, click Apex Class Access under Apps.
- Click Edit.
-
Find the following classes 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.
Setting User Permissions
To set user permissions:
- From the permission set, click User Permissions under System.
- Click Edit.
- Enable Apex REST Services.
- Click Save.
Enabling External Credential Principal Access
The AI Connector external credential authenticates the requests that Salesforce sends to the Certinia Agent platform. Users who cannot access its AI_Connector_Shared_Principal principal cannot reach the agent service, so you must enable the principal in the permission set.
To enable external credential principal access:
- From the permission set, click External Credential Principal Access under Apps.
- Click Edit.
- Find AI_Connector_Shared_Principal in the Available External Credential Principals list and move it to Enabled External Credential Principals.
- Click Save.
Setting Object Permissions
To set object permissions:
- From the permission set, click Object Settings.
- Click Chat Sessions.
- 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, then click Edit.
- Set the same permissions as above and click Save.
- Navigate to Object Settings, click Flex Instructions, 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.
Setting 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 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 | Enabled | Enabled |
| Current Phase | Enabled | Not enabled |
| Display in Chat | Enabled | Enabled |
| Message Content | Enabled | Enabled |
| Response Feedback | 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 | Enabled | Not enabled |
| Instruction Text | Enabled | Not enabled |
- Click Save.
Setting 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.
- Click Edit.
- Set the Tab Settings to Visible.
- Click Save.
Adding the Permission Set to the External Client App
Add the AI Connector - Use AI Agent permission set to the Certinia AI Connector external client app.
The Certinia AI Connector external client app passes information between Salesforce and the Certinia Agent platform. The app accepts requests only from users who hold a permission set that is selected in the app's policies, so you must add the permission set to the app.
To add the permission set to the external client app:
- Navigate to Setup | External Client App Manager.
- Click Certinia AI Connector.
- On the Policies tab, click Edit.
- Under Select Permission Sets, move the permission set from the Available Permission Sets list to the Selected Permission Sets list, then click Save.
Assigning 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