According to this URL http://docs.botframework.com/connector/embed-chat-control/
We generate a token value which is used generate the iframe embed url.
I want to be able to access this token value from the corresponding bot.
If I can't access it directly, is there any way I can compute it inside the bot framework code?
If my understanding is right, you want to check whether your bot is working via embed chat through the bot itself rather than creating a new website and embedding it there.
I've embedded the widget in the default.htm file of my project and if the project is deployed on Azure, you can test its working.
Just code like this....
Please find the sample code here.
The test might fail if you try the same code as I've stopped Azure services running, but you can try the sample code by deploying it on your Azure account.
This is another example which might be helpful too.
Please refer this documentation for the step by step tutorial.
Regards,
-Jyo