MarketplaceStudioConnectorChatbot with Dialogflow

Create your first automation in just a few minutes.Try Studio Web

Chatbot with Dialogflow

Chatbot with Dialogflow

by Internal Labs

4

Connector

Downloads

2k

Qi Wu
Posted 5 years ago

Hi sir,

What information about the self-signed certificate do we need to provide under invalidCertificate option?

Thanks

Quentin UiPath
Posted 5 years ago ago

true

Qi Wu
Posted 5 years ago

Hello sir,

I am currently facing a configuration problem. My team have made a chatbot using the template you created.

The chatbot works fine in the local environment. Nevertheless, when we moved the application to our office (OA) network we are having issues(Error: Self-signed certificate in certificate chain). We tested the robot with port:3000.

We are not sure whether it is because of the restriction of Node.js that caused the SSL certificate issue. Please give us some suggestions about this situation. Many thanks!

Quentin UiPath
Posted 5 years ago ago

Hello,

Please have a look at the Orchestrator client configuration.

As you can see in the module's README, you can support self-signed certificates by using the "invalidCertificate" option.

chaithra N
Posted 5 years ago

Hi,

After integration dialog flow chatbot with uipath, response suggestion chips not working in orchestrator bot, but suggestion chips working in dialog flow chatbot.please suggest anything missing.

Quentin UiPath
Posted 5 years ago ago

Hello, a common issue since 19.10 is that one needs to configure the folder ID where the queue is.

You can login to Orchestrator and access this endpoint "/odata/Folders" to find the numeric ID of the appropriate folder.

Then configure your Orchestrator client instance with the switchOrganizationUnitId method documented here.

Dear Brandon,

Could you please help me providing complete user guide on how we can integrate and work on chatbot with dialogflow?

Quentin UiPath
Posted 5 years ago ago

Hi Venkata, and thank you for looking into this component.

You are in luck, we just started the public preview of UiPath's chatbot connector service:

https://forum.uipath.com/t/chatbot-connector-now-in-public-preview/210724

It too is based on Dialogflow.

Please have a look, as we have now come a long way since early 2018 (when this component was developed)

Zeeshan Amanat
Posted 6 years ago

Hi Quentin,

I am working on fulfillment to achieve the same without using Orchestrator Queue. Everything is working fine but I'm unable to identify how to send a response to a user without triggering an intent. Could you please explain how you are sending response back?

Thanks in Advance!

Quentin UiPath
Posted 6 years ago ago

Hi,

I am going to go out on a limb here and assume that you mean pushing a message to the user past the timeout to respond to the intent fulfillment.

If that is what this is about, the answer is simple: you cannot push messages to the user through Dialogflow. This is the very reason the chatbot component here is designed with Dialogflow as a service used by the connector, and not standing in between the chat system and the connector.

I know that Dialogflow is already supporting a lot of integrations out of the box (Slack, Skype, Google Assistant to only name a few) but unfortunately, RPA requires more than 6 seconds to be able to do something, so you will need to handle the integration with the chat service yourself to work around this limitation.

Sai Krishna Somisetty
Posted 6 years ago

Hi,

How the uipath orchestrator is connected with dialogflow.

I made a successful connection with frontend and dialogflow, but there is connection established with orchestrator.

please help me out on this, thanks in advance

Quentin UiPath
Posted 6 years ago ago

Under the "Resources" tab of this component, you can find a Readme.pdf file to provide resources about the configuration process.

The config file's "orchestrator" object is where you would configure your credentials for Orchestrator.

If you use on-premise, follow the instructions here

If you want to use platform.uipath.com, you will need to see the note about the experimental support of cloud authentication (see the mention of refreshToken here)

If you still get stuck, how about starting a forum thread about this and mention me? My handle is qbrandon.

Samrudh B N
Posted 6 years ago

Cosuming apis is required for this?

I m not able to do use the Basic authentication api, Documents are not matching with the swagger documentation?

Quentin UiPath
Posted 6 years ago ago

Please have a look at the first question from Davendra Patel:

> Error for "127.0.0.1": Error: Unexpected status code: 400

The answer was as bellow:

> If you are using platform, please see the section about refresh token in the module used to interface with Orchestrator:

> https://github.com/UiPath/orchestrator-nodejs

> The util to get your refresh token can be found here:

> https://github.com/UiPath/orchestrator-nodejs/tree/master/tools/platform

If you are not using platform.uipath.com, but an on-premise Orchestrator instance, and you are facing authentication issue, then it could be something else, but please do have a look at the module above, especially the configuration options.

Davendra Patel
Posted 6 years ago

Hi,

I've manage to get it working. Excellent.

But the the results are not been shown as :

Extract Structured Data 'UL s-results-list-atf'

Is not getting the results. Amazon might have change the layout or something.

Can you please check?

Many thanks

Davendra

Quentin UiPath
Posted 6 years ago ago

Well, I have to admit that Amazon may not have been the best choice of sample for datascraping...

I have also noticed the success or failure of scraping may depend on the request itself, so I would suggest trying a variety of input, like book titles, cd titles, movie titles, etc... which may result in different presentation layouts, some working and some not...

Davendra Patel
Posted 6 years ago

Hi,

I'm getting an error

Error for "127.0.0.1": Error: Unexpected status code: 400

I don't think its connecting to

platform.uipath.com

using the Tenancy Name...

and maye need to change the authentication to getting a token?

https://forum.uipath.com/t/api-authentication-tenancyname/140192

Help.

Regards

Davendra

Quentin UiPath
Posted 6 years ago ago

If you are using platform, please see the section about refresh token in the module used to interface with Orchestrator:

https://github.com/UiPath/orchestrator-nodejs

The util to get your refresh token can be found here:

https://github.com/UiPath/orchestrator-nodejs/tree/master/tools/platform

Paul S
Posted 6 years ago

Hi

When will you update the underlying Node.JS Orchestrator module to handle OAuth type Authentication?

Quentin UiPath
Posted 6 years ago ago

Well, the module itself has been updated, so with a little of DYI, you can get it to run:

  1. edit package.json so uipath-orchestrator targets 1.1.0
  2. have a look at the following page to know how to get and configure the refresh token

https://www.npmjs.com/package/uipath-orchestrator

I need to update the component, but that will cover more things, at the very least, it needs to use Dialogflow API V2. And that will be a little later (but hopefully before the end of October which is when V1 will be taken down IIRC)

Aju Mathai
Posted 6 years ago

I was trying to use the chatbot with dialog flow. Land up with an error

  • { Error: Unexpected status code: 400
  •   at IncomingMessage. (D:\chatbot-bridge\node_modules\uipath-orchestrator\lib\restHelper.js:82:19)

I use my microsoft account to login to platform.uipath.com

default.json

"orchestrator": {

"hostname": "platform.uipath.com",

"tenancyName": "IBSDefault",

"usernameOrEmailAddress": "aju_mathai@outlook.com",

"password": "XXXXX"

},

Quentin UiPath
Posted 6 years ago ago

Hello Aju,

Unfortunately, newer platform account rely on OAuth rather than Basic Authentication (username/password)

I need to update the underlying Node.JS Orchestrator module to handle this type of credentials.

For a detailed information about how OAuth token consumption works (if you wish to understand why this project is not ready) you can look at this section of the Orchestrator doc:

https://orchestrator.uipath.com/v2019/reference#consuming-cloud-api

That being said, Basic Authentication is very much usable on non-cloud Orchestrator instances, so if you have access to any one of these, feel free to give it a try.

Best regards,

Quentin

Ashish Saxena
Posted 6 years ago

Hi,

Any document guide for the same ?

Quentin UiPath
Posted 6 years ago ago
  • Software reqs: UiPath Studio and Node.JS
  • In Dialogflow (project/agent needed) import the provided amazon intent and entity
  • Create a queue "pendingTasks"
  • Publish "persistentRobot" package on Orchestrator, create a process, and manually run the job (this is an always-running robot)
  • Extract the "chatbot-bridge", cd into it, and run `npm install` to pull the Node.JS dependencies
  • Edit the bridge configuration file "config/default.json" to match your environment:
  • server.{host,port} to establish the local HTTP endpoint that will serve the chat WebUI
  • orchestrator as the constructor options (see https://github.com/UiPath/orchestrator-nodejs/wiki/Reference)
  • dialogflow is the "Client access token" under the general settings of your agent (V1 API)
  • log is the configuration passed to log4js (see https://log4js-node.github.io/log4js-node/)
  • Run the bridge process `node index.js`

Open http://127.0.0.1:6543 , ask the chatbot to search something for you on Amazon.