Provision access to Agents and Knowledge Contexts via Agent Sessions
agentSessionUid
to the <mindset-agent>
HTML tag will allow you to embed the agent with the specified access permissions.
Parameter | Description |
---|---|
YOUR-APP-UID | Your appUid is provided by mindset. |
YOUR-MINDSET-API-KEY | Your Mindset API key. It is used to authenticate your API calls. |
AGENT-UID | The agent Uid you want the user chat with. You can find that Agent Uid in the setting of the agent in the Agent Management Portal. |
KNOWLEDGECONTEXT-1-UID | One Knowledge context Uid you want to provision the agent with |
KNOWLEDGECONTEXT-2-UID | Another one Knowledge context Uid you want to provision the agent with |
MINDSET-API-HOST | The Mindset API host. Used to call the Mindset API. |
agentSessionUid
required by the SDK), you will need to call the Mindset agentSessions API
. (See the Agent Sessions API documentation for more details).
users
would have specific rights to access specific agents and specific Knowledge contextsFor example:User1
has the permission to use the agent1
provisioned with the Knowledge Context 1
and knowledge context 2
.User2
has the permission to use the agent1
provisioned with the Knowledge Context 1
agent sessions
.agentUid v8srU0hv88BeWBDcirSm
)contextUids [qZJGsjytbM5fL15sfBui
, 3am8rolEPXx3j0n132Bf
])externalUserId
(user-x123456
).agentSessionUid
(v8srU0hv88BeWBDcirSm::uFKbuW0ipk2Za4QuQ6rx
).<mindset-agent>
HTML tag in your Front-end page:
agentUid
you will provide the agentSessionUid
you just created in the previous step.
The final HTML tag will look like this:
/api/getusertoken
which authenticate the user with Mindset system and returns an authToken
/api/getagentsessionuid
which create an agent session and returns the agentSessionUid
getAuthToken()
method using your /api/getusertoken
end-point.getAgentSessionUid()
method using your /api/getagentsessionuid
end-point.<mindset-agent>
html tag by passing the agentSessionUid
returned.mindset.init()