Greetings I am doing the exercise of publishing the bot on a web page I have followed the steps exposed in https://developer.kore.ai/docs/bots/sdks/kore-ai-web-sdk-tutorial/ but I have the following questions
• The web page then no longer runs on the original server, for example apaches ino on the node so I can have the bot?
• Is it possible to change the date format to put it in another language or format?
• All bot actions are being taken to the user registered in the botOptions.userIdentity parameter, how can I make them initially be a generic user.
• Regarding the parameterToken botOptions.JWTUrl = “http: // localhost: 3000 / api / users / sts”
The web page then no longer runs on the original server, for example apaches ino on the node so I can have the bot?
This is not clear. Can you please elaborate.
Is it possible to change the date format to put it in another language or format?
Whatever language you have enabled on the bot will be supported. For normal conversions etc. Please use https://developer.kore.ai/docs/bots/advanced-topics/koreutil-libraries/ but that has to be used within the bot (mostly in script nodes/ JS option of message nodes).
All bot actions are being taken to the user registered in the botOptions.userIdentity parameter, how can I make them initially be a generic user.
The userIdentity is mandatory. You will need to pass either email or some other “unique” identifier for the user. If you want the chat history to be shown for revisiting users, use a user specific unique value (like taking the email or employee id) from session. If chat history is not to be shown, you can use a function to generate random values like YYYYMMDDHHMMSSMS for a user. It is not necessary to have email id in unique identifier. But in that case, we recommend you use customData to push the email ID or some unique identifier so that you can tag the user session appropriately if needed.
Regarding the parameterToken botOptions.JWTUrl = “http: // localhost: 3000 / api / users / sts”
As mentioned in https://github.com/Koredotcom/web-kore-sdk#prerequisites You are required to have your own working JWT service for web-channel integration.
You can use the example app provided in example nodejs SDKApp but we recommend you to host it in the web-site there you are trying to integrate the bot. Refer to Tips on setting up JWT service.
Expanding question 1
I have a website made in WordPress that runs on an apache server architecture, to place the bot I have followed the example of the guide, in the SDKapp example provided in the documentation the index.html page located in SDKApp / sdk / UI is the it runs on node.js server, following these steps i copy my project into SDKApp / sdk / project the bot is seen but it runs is on node.js server not on my apache server
My questions is how can I continue to run my project on its original path?
Apache server: http://localhost:8544/misitio/pagina.html
node js server: http://localhost:3000/ui/
Sorry have been away for some time. Is this still a question you have or is this sorted? Please let me know.
I have similar question here. how do we make chatbot to run in our internal application without redirecting to other url
If you are using the latest versions, you will notice that in the web/mobile channel there is an embed code. You can embed the bot there if it helps. For any custom application, you can use the webhook channel too to communicate with the bot.