How to make forms in dialogflow? - dialogflow-es

I was trying to make an admissions portal bot and my requirement is to ask the user to enter basic information in a form and click on submit inside the bot itself. Any ideas on how to do this ?

There is no concept of forms in Dialogflow, you would just ask the user for the information that you need. Actions on Google has 'Helpers' for commonly required user information that return the users response as structured data, but if you need something more specific you would have to parse the users response on your own (preferably via a developer entity).

Related

Docusign: sign and upload pdf documents. User sets position for signing field

We are thinking about using the Docusign API to make signing documents possible in our own app. I am currently unsure if I can implement our ideas using the docusign api.
We have a platform where you can upload and manage documents (PDF). The idea is that a user can click on an uploaded document, sign it and then upload it again. Each document looks different, so we just want to give the user the option to set a signature field and sign it himself.
Here is a short example of our idea:
User selects PDF document (in our app) and clicks on a button called "sign".
A new frame opens (with Docusign UI, if possible?).
The user sets the position of the signature field, signs it himself and presses "save".
The signed document is uploaded to our app as a PDF document.
Can this be done using the Docusign API?
Our App is built with nodejs.
Many thanks in advance :)
Daniel
Not sure if there is a specific part of the scenario you need help with. Yes, the scenario above is possible to implement with our DocuSign APIs.
You'd need to create an envelope with the uploaded PDF documents and send it over to the user. They can then sign/add tabs where they like to sign.
Let us know if you need specific clarification.

How do I post as different users in react-activity-feed component using the same token?

Our Use case is Anyone can create a site in our platform bit as Wix lets say. Each Site has its own Community & Chat.
So I used my appId, secret key to create the user session token for the user of the site1 says site-1-user-1 for displaying the community of site1.
I used react-activity-feed components to display the timeline feed of user site-1-user-1 (timeline:site-1-user-1)
I also displayed status update from above the activity feeds using react component. So when I post in this status update form, the activity gets displayed as by site-1-user-1.
How do I post activity as a different user say site-1-user-2 using the same token? I want the timeline feed with status update form to be displayed as a discussion forum where any logged in user can post any topic and see other activities also.
I am able to do this using PHP and getStream SDK.
How is it possible by using the react component?
Stream restricts actions user is able to perform when using client-side tokens:
User is able to read any feed
User is able to make feeds with her user-id follow any feed
User is able to post to feeds with her user-id
Client side tokens can only be used to perform the actions as the user the token was created for.
If you need to be able to impersonate other users or post contents for users to feeds they have no access to you will have to user server-side stream api

check identity of multiple users on actions on google

I have successfully implemented google assistant on rpi using gassistpi and added agent on dialogflow also. The issue is that if multiple users invoke google assistant on different raspberry pi I am not able to identify which user has invoked the action as request from webhook on dialogflow doesn't have any user identity information. Thus, I am facing issues while retrieving data for particular user.
I tried using account linking on actions on google using google signup over voice but I am unable to implement that.
The Google Assistant SDK does not have voice match as a feature, so you would be unable to use it to identify individual users of the Action on that surface.
when your webhook is called, you have the ability to store data from every request. For instance look at :
https://developers.google.com/actions/assistant/save-data
That way you can maintain and know each devices session. Even if you don't know the user.

API.AI - How to authenticate user with Gmail account OR Active directory in chat bot

We are developing a chat bot for finance.
So once user going to start chat, bot should prompt for login. Then Once click on login, user should be redirected for login form and able to login with correct credentials, and bot should able to understand that user authentication succeeded or failed.
We are going to use our own custom platform(Agent page) i.e html page to communicate with api.ai.
Please provide info, if any one has done similar stuff or how to accomplish it.
As far as I understand it the recommendation is to pop up a browser window for the authentication (with the correct auth url for the service you want the user to auth against) and then store the access token in the bot's state/db for this conversation.
Have a look at for example https://blogs.msdn.microsoft.com/tsmatsuz/2016/09/06/microsoft-bot-framework-bot-with-authentication-and-signin-login/, should give you some ideas.
Well, since it's a finace chatbot developer, I can try to give out what I know. I would advise that the chatbot should be on a different website. I'm saying this because if a person fails the login form and user credentials,the chatbot can actually teach the person how to do it, what his or her mistakes were, and how to correct them. if people see this and it's easier,they will pay more interest into your website. Or if that doesn't work, the user should be directed to a Facebook page,or an agent page.

Sending Documents that need to be managed by multiple departments

I am trying to figure out the best possible way to manage a system where we will be sending out different documents via the api through one account. These documents will need to be handled by different departments. Is there a way in the api to share the envelope with a particular group/user? My other idea was to create multiple department API users and depending on which document I am sending will use that departments API user and associate that API user with the department user. It seems like a more complex solution but I know it would work.
Thanks,
Dan
I'm not sure why your question was downvoted without a reason, so I'll throw out my 2cents.
Question 1: Is there a way in the api to share the envelope with a particular group/user?
You can share all of a user's envelopes with group/user, but not specific envelopes. I do not suggest building a workflow around this.
Idea 2: Create multiple department API users and depending on which document I am sending will use that departments API user and associate that API user with the department user.
This is the best solution for scalability and customizibility, remember that an API user does not need to be an admin to create an envelope. In this case, it would be better if that user was not an admin, so they are limited to access only the envelopes that you'd want them to access.
I'm not sure what language your integration is in, but you should be able to store all of the credentials in an array/hash and just call the specific entry for username/password per workflow.
You didn't post what requirements you need for these workflows, so this is a very high level generic question and answer. You may want to go back to the drawing table and figure out your hard requirements. The solution above may not fit all of your requirements, especially if your security team has specific requirements that they need to have followed.
example requirements
Envelopes need to be created through the API
All envelopes must reside on the same account
Envelopes can't be seen by other departments
Envelopes need to be modified by department DepartmentName after Envelope Creation
The API needs access to view the status of these documents

Resources