How to trigger a event in inline editor? Bot initiates a conversation - google-cloud-functions

At first i must say, that I'm new in dialogflow.
I am trying to set up dialogflow chatbot to initiate a conversation(just welcome message)?
I already know that I must trigger a Welcome event.
I looked for an code example on a few websites but i couldn't find it.
Can anyone help me with this problem?

Related

How to use JWT to ensure it captured logged in user?

I am trying to follow a video to complete a Iventory management app. It started having problem when I am trying to getuser or update user, not sure my token or my code is wrong, but i follow exactly as the video taught, please help on this.
authmiddleware.js

trying to figure out a way for accounts in my mock backend to send and recive invites to an event and be able to accept or deny in angular

The project is in angular 14 and has us create our own database.json with accounts. A registration and login component is set up. The app allows for users to create an event and post it to their page. Each event should have a edit and delete function. my mind cant. wrap around the part where you can send invite to another account and that user should be able to receive it. If anybody could help conceptualize a start or how they went about it, it would be most helpful

in Kore.ai Dialog Task - How to allow user to upload and then submit a document via an API and update Workday?

We have an HR chatbot on the Kore.ai platform. I'm wondering if it's possible to allow a user to upload and submit a letter directly to our Workday HR system, using a dialog task.
We will be able to get the Workday integration through our internal TIS team to allow us to update Workday. However I don't know what is involved in the Dialog task. Does anyone have an example of the code required within the Kore.ai platform to achieve this? Any guidance is appreciated. Thank you!
I’m sorry I just saw this post. You can add the letter as an attached file you can upload to the chatbot. Also, if you find it easier we can also create a form where the user explains the reasons, like a normal letter and update it to the system. Let me know if you would like to set up a quick meeting and go through all the options ☺️

Google App Script to reply to Slack with 200 and run the actual code

I have used google app script to make an interactive app in Slack. Most of the time it works as I want it to, but in one of the steps the app has to retrieve all the issues from Jira and attach it in the payload, also contact an external API to create a progress chart etc. In short it is a time intensive process and sometimes it fails because Slack does not get a reply within 3 seconds.
I tried using the trigger builder but unfortunately it has a +-15m accuracy in a millisecond input... I need the interactions to be fairly instant.
If anyone knows and could share another way to make this happen, it would really help.
Thank you

UiApp: Persistent login for non-gmail users

I am attempting to implement a Google Apps Script web service which requires users to log in using an account set up on our system.
The users will not necessarily have a gmail account, and should not be required to create one.
The web service must run using as the script owner, as it is necessary for it to be able to write to a spreadsheet and other resources which do not have shared write permission.
I have managed to implement the login screen, with reasonably strong security -- but the problem I encounter now is that users must log back in every time they visit, and even if they hit the refresh button.
Any ideas on how to implement this?
Is there some way to store a cookie in the users browser, containing a session id?
Or is there some other method which can work?
Thanks in advance!
Josh
This is a very old post but as there is a solution, I think it is better to show it to help people with a similar need
Hi Josh,
I have developed such a system and there is indeed a way to do this.
You can indeed develop a cookie like system that is using the PrivateCache class: CacheService.getPrivateCache().
It works if the user reload the page or close it.
However with this solution when you close your browser it will not be possible to retrieve the information anymore.
Here are the functions that I use to prevent the problem you have underlined
Feel free to adapt them
function getCookie(){
var cache=CacheService.getPrivateCache();
var cached=cache.get("UserCookie");
if(cached!=null){
return Utilities.jsonParse(cached);
}
return -1;
}
function createCookie(data){
var cache=CacheService.getPrivateCache();
cache.put("UserCookie",Utilities.jsonStringify(data),1800);
}
function removeCookie(){
var cache=CacheService.getPrivateCache();
cache.remove("UserCookie");
}
Another way would be to use UserProperties. In this case it will work even if you close your browser... I just tried it
the functions to use are therefore:
function getCookie(){
var cached=UserProperties.getProperty('UserCookie');
if(cached!=null){
return Utilities.jsonParse(cached);
}
return -1;
}
function createCookie(data){
UserProperties.setProperty('UserCookie',Utilities.jsonStringify(data));
}
function removeCookie(){
UserProperties.deleteProperty("UserCookie");
}
I hope it will help anyone...
Cheers
Nicolas
Persistent login are not possible with Apps Script as Apps Script can not interact with browser objects like cookies etc. Apps Script is intended to work only with Google Accounts.