Programatically add context to chat so AI assistant can use with API calls

Hello,

When a user logs in on my site, I show a randomly generated hash string to them in the profile page, named “chat_token”, which is unique for each user.
When they begin the chat, they can get info about my page and they can also execute some actions (get info about their details, cancel payment, etc).
In order to execute these actions, I have set up the AI assistant to always prompt them for their chat_token.
The user is instructed to go to their profile page, copy the token and paste it to the chat.
After pasting it to the chat, the AI assistant will execute the appropriate request to my API endpoints.
I have setup these endpoints using my schema.json endpoint, as instructed in the Integration/API page of the AI assistant.
The AI assistant chat bot will use the provided chat_token to authenticate the user and successfully execute actions using the provided OpenAPI spec.

I want to automate this. It is tedious for the user to have to copy-paste the chat token each time they log in. How can I automatically add context to the chat when a user logs in on my site?
I have tried using setAttributes (JavaScript API – tawk.to Developer Portal), didn’t work.
I have tried adding events (JavaScript API – tawk.to Developer Portal) and seeing if the AI assistant would use the provided chat token in the API calls, it didn’t.

Is it possible to forcefully add a chat at the beginning of the conversation? This is not ideal, but it would solve the problem.

Best regards,
Matjaž