Subrahmanyam
(Subrahmanyam Donepudi)
August 7, 2018, 8:51am
1
Bot variables present at bot can be fetched into bot kit by using the below end-point.
https://bots.kore.ai/api/botsdk/stream/{{stream_id} }/getBotVariables
This API needs JWT in the header. Please find the sample curl below:
curl -X GET
https://bots.kore.ai/api/botsdk/stream/{{stream_id} }/getBotVariables
-H 'auth: eyJhbGciOiJIUzIXXXXXXXXXXXXXXXY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.WcHsYja3RFfu7X_HoltHBurJ6Bazc5pDkuDB1sJuD60' \
-H 'bot-language: en'
-H ‘cache-control: no-cache’
-H ‘content-type: application/json’
-H ‘postman-token: 3fa6e6a0-5bcd-2250-b709-21ad8d1b3af9’
Please note that to fetch locale variables present at any language enabled at the bot, the language has to be passed in the header to the API.
Please refer to below post on details on creating and accessing bot variables for more details:
Bot variables are classified as Global and Content variables which fetch values during runtime. Global variables remain the same throughout the bot and the value for Content variables change based on how they are defined at each of the languages considering its a multi-language bot.
Below snip shows how developers could create global variables on builder tool.
[image]
Below snip shows how developers could create content variables on builder tool.
[image]
[image]
Global and Content variable…
2 Likes
caditi009
(Aditi Chauhan)
October 26, 2022, 10:57am
2
Hi I am working on koreAi project in my firm. Can you help me is there any way i can have date of creation of a bot. It would be very helpful if you can answer to my query.
1 Like
caditi009
(Aditi Chauhan)
January 4, 2023, 10:03am
3
Ya i found i way there is a change Log API which shows the changes done on the Bot/Assistant created so by default it starts giving logs from the date when bot was created so we can consider that date as a bot creation date.