Automatically Create Dialogflow Agent using API

214 views
Skip to first unread message

Quang Vũ

unread,
Dec 11, 2020, 3:34:48 AM12/11/20
to Dialogflow Essentials Edition users
Hi,
Currently I want to deploy the chatbot creation platform for many customers, each client one chatbot, so is there a way to automate the creation of dialogflow agent and create service account key?

Ludvig Linse

unread,
Dec 11, 2020, 3:40:56 AM12/11/20
to Quang Vũ, Dialogflow Essentials Edition users
Hi,

Yes, you can do this (we have done it with https://narratory.io/)

Start by looking at these endpoints/CLI-methods:

Best regards,

Ludvig

Den fre 11 dec. 2020 kl 09:34 skrev Quang Vũ <quang....@gmail.com>:
Hi,
Currently I want to deploy the chatbot creation platform for many customers, each client one chatbot, so is there a way to automate the creation of dialogflow agent and create service account key?

--
© 2020 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Dialogflow Essentials (f.k.a. Enterprise) Edition Discussion Google Group (dialogflow-essent...@googlegroups.com; former email: dialogflow-enterp...@googlegroups.com) to participate in discussions with other members of the Dialogflow community and the Dialogflow Team.
---
You received this message because you are subscribed to the Google Groups "Dialogflow Essentials Edition users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dialogflow-essentials-e...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dialogflow-essentials-edition-users/0ae9ce61-3a6d-435e-8573-37399594cb9fn%40googlegroups.com.


--
The dialog-first tool to build scalable chat and voice apps
https://narratory.io

Quang Vũ

unread,
Dec 11, 2020, 1:14:17 PM12/11/20
to Dialogflow Essentials Edition users

When i create dialogflow agent using api, i can't enable Dialogflow API automatically
Screenshot from 2020-12-11 14-28-04.png

Another problem is that the service account key format when generated with api code different from keys created manually using the Cloud Console, i can't use it
 
This is key generate from Cloud Console
Screenshot from 2020-12-11 17-00-06.png


This is key generate from API code
Screenshot from 2020-12-11 17-00-27.png
Vào lúc 15:40:56 UTC+7 ngày Thứ Sáu, 11 tháng 12, 2020, lud...@narratory.io đã viết:

Tung Nguyen Thanh

unread,
Dec 17, 2020, 3:52:21 AM12/17/20
to Dialogflow Essentials Edition users
I have the same issue? Hope anyone can help us? 

tielve

unread,
Dec 18, 2020, 12:21:16 PM12/18/20
to Dialogflow Essentials Edition users
To enable services programmatically, you can use [curl](https://cloud.google.com/service-usage/docs/enable-disable#curl) or the [gcloud](https://cloud.google.com/service-usage/docs/enable-disable#gcloud) command.

As you can see in our [documentation](https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys), the format of the key may indeed differ depending on how it is generated and because of that, it's easiest to generate a key using the same method you plan to use when making future API calls.

Reply all
Reply to author
Forward
0 new messages