How to link google action with dialogflow using gaction CLI? - dialogflow-es

I am trying to automate the process of google action creation and deployment and for that I can find a a number of documents where gactions is being used to handle action console with action SDK.
I want to ask if their is any way i can link google action with my dialogflow agent using gaction CLI Or if any other CLI is already providing the support for same.

Under the hood an Actions on Google project will have a 'project id'. This is a Google Cloud Platform project, which gives your Action access to additional resources if you want, like Cloud Functions.
Dialogflow uses the same infrastructure, where the Dialogflow project id is a GCP project.
"gactions" as a command-line tool is not designed to work too closely with Dialogflow. However, as you know that your Action and Dialogflow share a common infrastructure, you could do some work yourself to use the Dialogflow API with your project ID to do some automation.

Related

Using LogicApp to make post in Teams with link to open pipeline

I know it's possible to create Logic App in Azure to send message in Teams after completing pipeline. I don't know how can I add hash with completed pipeline as clickable link to open.
I couldn't find any information how can I do this.
I will be grateful for your help.
Azure DevOps Pipelines already have official support to integrate into Microsoft Teams that you could use directly, even without a Logic App.
But if you still need to use a Logic App, then what you could do is use the Invoke a REST API task to call your Logic App, and then send an Adaptive Card which you can design to have a button which links to the pipline.

How to create a Webhook between Google chat and Azure devops

Is it possible to connect a Google Chat room using Azure devOps WebHooks?
Thanks
Web Hooks in Azure DevOps provide a way to send a JSON representation of an event to any public endpoint (HTTP or HTTPS).
But it's not able to directly contact Google chat room with Azure DevOps. Cause DevOps sends a JSON message in a format that Chat is not able to understand. Which means they do not talk to each other by default.
We need a way to transform the message and tie those two services together. There are a lot of options for that. We could use a 3rd-party tool Zapier.
It allows to easily integrate various services and APIs and I highly
recommend it, although it is a subject for another post.
You could refer this step by step tutorial-- Azure DevOps integration with Google Hangouts Chat

Link a dialogflow agent to a Google Cloud Console project and inherit all the team members i assigned to the project?

How can i create a dialogflow agent and associate it with the Google Cloud Console project i created and have it inherit all the team members i assigned to the project ?
I am working on a dialogflow project. I created a new project in the Google Cloud Console and added some team members. However when i switch to the dialogflow console i do not see my project and the people i added to it. when i create a new agent in dialogflow it seems to have nothing to do with the project i created in the cloud console and i have to explicitly share the agent with the team. So the Google Cloud Console project is sort of useless.
For example in Azure cognitive services i can link everything to my root project.
Best CK
Google could do better in making these resources (e.g. Projects) more clear.
Actually (to my knowledge) all Google Projects represent the same underlying project resource and you can e.g. view DialogFlow projects from Google Cloud Console and vice versa.
I suspect (!) that you created 2 different projects: one using (Google Cloud Platform) Console and one using DialogFlow Console
If you have the Cloud SDK (aka gcloud) installed, you should be able to list all your projects (Cloud, DialogFlow etc.) using:
gcloud projects list
Now, to answer your question. Users of Google (!) Projects are Google accounts users and groups and also include service accounts. You may list the users for a given project with:
gcloud projects get-iam-policy ${PROJECT}
Ideally, what you want to do is ensure that this policy is reflected across both projects. I'm reluctant to provide a script because service accounts complicate this sharing. Service accounts work across projects but they are created automatically in projects. A simple copy-and-paste of accounts may break something for you.
That said, here's a gcloud command to enumerate the list of ${ROLE} (roles/owner) from one project ${SRC}:
PSRC=...
ROLE="roles/owner"
MEMBERS=$(gcloud projects get-iam-policy ${PSRC} \
--flatten=bindings \
--filter=bindings.role:${ROLE} \
--format="value(bindings.members)") && echo ${MEMBERS}
NB There's probably a way to split user:some#email.com if you need to
You could then iterate over this list and add (!) these accounts to ${PDST}
for MEMBER in ${MEMBERS}
do
gcloud projects add-iam-policy-binding ${DST} \
--member=${MEMBER} \
--role=${ROLE}
done
Lastly, when you create a DialogFlow project you are provided with the option to use an existing Google (Cloud) Project. Next time, you follow this flow, please look for the "create new or use existing project" prompt. You would be able to select the Project you'd created previously to reuse your users.

Integrating Azure Bot with Azure Speech Services

Is there a possible way to integrate the speech services with bot? So i would like to know what is the process that goes in the integration of Speech Services with Bot?
How is it possible to do the integration with bot through the key that is obtained from the Azure Speech Service created?
And how to check whether the created Speech Services is working?
Is there any common portal for the Speech Services to be tested like the portal for custom speech(https://westus.cris.ai/Home/CustomSpeech)?
And What are the different ways for integrating?
To test the speech service whether works, you can use the code sample provided by Microsoft without write addition code. Refer to the Next steps section of Text to Speech
Or you can make the REST API using POST man according the documentation.
And to integrate the Speech Service with Bot, you can refer the figure below:

How to integrate Watson Discovery with Watson Virtual Agent?

How to integrate Watson Discovery with Watson Virtual Agent? Can anyone give hints, sample code and provide documentation link? https://github.com/watson-virtual-agents/chat-widget does not contain information regarding this? Thank you very much!
Basically, you need to use a custom code with 2 APIs endpoint: Discovery and Virtual agent/ Conversation.
For now, have one example with Conversation Service and Discovery Service in Java, from IBM Developers, you can see in this link.
And a few weeks ago I built some simple example using the project conversation-simple for integrating Discovery, using the highlight and another custom params, using Node.js, you can see in this link
After creates one IBM Cloud (Bluemix), go to Catalog and Select the Watson services above, pay attention to the Services credentials when you click in your Watson Service for use each service, as you can see in my .env and IBM Professionals file, for all works, you need to paste the values into the Enviroment Variables or replace the values with the respective variables in your code.
See the Official Documentation for Using Watson Virtual Agent instead of Conversation.
See the Official Documentation and API Reference for use Watson Discovery.
See the Official Documentation and API Reference for use Watson Conversation.

Resources