Coder Social home page Coder Social logo

xavidop / dialogflow-cx-cli Goto Github PK

View Code? Open in Web Editor NEW
41.0 2.0 9.0 11.9 MB

The missing Dialogflow CX CLI to interact with your projects

Home Page: https://cxcli.xavidop.me

License: Apache License 2.0

Go 99.41% Shell 0.54% Dockerfile 0.05%
cli dialogflow dialogflow-cx golang nlp nlu test-automation testing-tools cxcli dialogflowcx

dialogflow-cx-cli's Introduction

Hi, I'm Xavi Portilla ๐Ÿ‘‹๐Ÿฝ ๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป

I'm Senior Software Engineer who is passionate about new technologies such us DevOps, Testing, Node.js and Alexa. I am currently working as a Test Automation Engineer at Voiceflow.

You'll here find public repositories with Alexa Skills examples. Feel free to contact me if you have any suggestions or questions.

Xavi's github stats

Made with โค๏ธ

Xavi Portilla | Twitter Xavi's LinkdeIn Xavi Portilla's Medium Xavi Portilla's Blog Xavi Portilla's Youtube Channel Xavi Portilla's Podcast

dialogflow-cx-cli's People

Contributors

dependabot[bot] avatar fossabot avatar imgbot[bot] avatar koverholt avatar maci3jka avatar xavidop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dialogflow-cx-cli's Issues

"agent not found"

What happened?

We were trying to use the agent cli options (export/import/delete). Unfortunately, we always get the Error: ".....agent not found".

Would you confirm that the cli is working? If so, is there a way to enable debugging on the tool?

How can we reproduce this?

Just export an agent.

cxcli version

INFO[2023-01-16T17:07:05+01:00] Current version: 1.12.1
INFO[2023-01-16T17:07:05+01:00] You have installed the latest version!

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

Links in Docs See Also Leading to 404

What happened?

While clicking on the links in See Also section led to 404 error, I tried a few other pages and similar event happened ending in a 404.

How can we reproduce this?

https://github.com/xavidop/dialogflow-cx-cli/blob/v1.41.0/docs/docs/cmd/cxcli.md
Click on the first or second link under the See Also section.

cxcli version

v1.41.0

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

Hi @xavidop , excellent job on furthering the development CXCLI ๐Ÿ‘

Not able to find the latest version in https://hub.docker.com/r/xavidop/cxcli/tags

What happened?

The previous versions stopped working since the v1.29.0 has been pushed.

Error:

time="2023-03-09T20:18:40Z" level=warning msg="A new version is available: 1.29.0. Please update the tool using your package manager or downloading the latest release from Github: https://github.com/xavidop/dialogflow-cx-cli/releases/latest"
time="2023-03-09T20:18:40Z" level=error msg="agent not found"

How can we reproduce this?

docker pull xavidop/cxcli:v1.29.0

cxcli version

v1.27.1

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

Please push the latest version to docker hub or allow to use the previous versions.

Discord Link on Github and Official Pages Does Not Work

What happened?

Hi,

Your discord link found on the readme doc and your hosted docs results in an invalid invitation.

Thank you,
Inayet

How can we reproduce this?

Click on the discord link

cxcli version

NA

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

Error: tcp lookup no such host - when no location specified

What happened?

When I run the following command to create an agent:

$ cxcli agent create TesterBot --credentials ~/.config/gcloud/service-account-key.json

It returns the following error:

ERRO[2023-04-18T21:20:07-05:00] Post "https://-dialogflow.googleapis.com:443/v3beta1/projects//locations//agents?%!a(MISSING)lt=json%!B(MISSING)enum-encoding%!D(MISSING)int": dial tcp: lookup -dialogflow.googleapis.com: no such host

How can we reproduce this?

  1. Install cxcli
  2. Create a service account and a JSON key
  3. Create an agent with cxcli agent create [name] --credentials [path-to-json-key]

cxcli version

INFO[2023-04-18T21:22:18-05:00] Current version: 1.43.1
INFO[2023-04-18T21:22:19-05:00] You have installed the latest version!

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

Does cxcli pull a default location from the gcloud config? If not, then the --location-id should be a required parameter.

Also, you might want to catch errors when cxcli tries to reach out to https://-dialogflow.googleapis.com (when the location is not specified) and/or allow users to use the https://dialogflow.googleapis.com service endpoint. Otherwise users might get confused by the tcp error and not know to specify a location.

Finally, thanks for the great tool! ๐Ÿ˜Ž

Minimal set of parameters should be required for agent create

What happened?

I ran the following command:

$ cxcli agent create TesterBot -l us-central1 --credentials ~/.config/gcloud/service-account-key.json

and got an error about IAM permissions:

ERRO[2023-04-18T21:29:01-05:00] googleapi: Error 403: IAM permission 'dialogflow.agents.create' on 'projects//locations/us-central1' denied.

Through trial-and-error, I was able to determine that the location ID, project ID, default locale, and default timezone are required parameters, but the CLI does not enforce this. The working command and set of options was:

$ cxcli agent create TesterBot -e en -t America/Chicago -l us-central1 -p [project-id] --credentials ~/.config/gcloud/service-account-key.json

How can we reproduce this?

  1. Install cxcli
  2. Create a service account and key
  3. Run the command to create an agent with only the location ID and credentials options

cxcli version

INFO[2023-04-18T21:34:52-05:00] Current version: 1.43.1
INFO[2023-04-18T21:34:52-05:00] You have installed the latest version!

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Proposed changes

  • Require certain parameters in CLI (e.g., location, locale, timezone and others in cxcli agent create
  • Block the command from running until required parameters are provided
  • Can start with required params for cxcli agent create, but I imagine this will also apply to other subcommands
  • Use smart defaults when possible to minimize friction for developer onboarding, for example:
    • Default to creating the agent in the global region when a location is not specified
    • Maybe also provide a default locale and timezone for the same reason?
    • Is there a way to re-use the active project ID from gcloud (or other metadata from gcloud) to avoid specifying those arguments at all?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.