GoogleCloudPlatform / dialogflow-integrations

Dialogflow integrations with multiple platforms including KIK, Skype, Spark, Twlio, Twitter and Viber
https://cloud.google.com/dialogflow/
Apache License 2.0
256 stars 503 forks source link

Deploying the Integration Using Cloud Run #30

Open ingluiszgz opened 4 years ago

ingluiszgz commented 4 years ago

I advance the instructions with no problem until , Platform-specific Instructions/Twilio (Text Messaging) Integration

and then--

In your local terminal, change the active directory to the repository’s root directory.

// Does this mean, al the files that I changed, like dockerfile and server.js file, do I move them to C:\Users***\AppData\Local\Google\Cloud SDK and then run the following commands???

Run the following command to save the state of your repository into GCP Container Registry. Replace PROJECT-ID with your agent’s GCP Project ID and PLATFORM with the platform subdirectory name.

because I did and GCP Container Registry got fulled with some stuff and then continue the instructions and apply the following code and it didn´t worked

gcloud builds submit --tag gcr.io/PROJECT-ID/dialogflow-PLATFORM Deploy your integration to live using the following command. Replace PROJECT-ID with your agent’s GCP project Id, PLATFORM with the platform subdirectory name, and YOUR_KEY_FILE with the name (not path) of your Service Account JSON key file.

gcloud beta run deploy --image gcr.io/PROJECT-ID/dialogflow-PLATFORM --update-env-vars GOOGLE_APPLICATION_CREDENTIALS=YOUR_KEY_FILE --memory 1Gi

jameskauczka commented 4 years ago
  1. Cd C:\Users\xxxxx\Documents\GitHub\dialogflow-integrations

  2. For Twitter I ran: (Your platform will be twillio, same as the subfolder named in above. gcloud builds submit --tag gcr.io/dol-chatbot-test-oarsaj/dialogflow-twitter

gcloud beta run deploy --image gcr.io/dol-chatbot-test-oarsaj/dialogflow-twitter --update-env-vars GOOGLE_APPLICATION_CREDENTIALS=dol-chatbot-test-oarsaj-787814d665cc.json --memory 1Gi

Animesh2ui commented 4 years ago

@jameskauczka did you create Dialogflow - Twitter open source integrations? Actually I tried implementing several times following all the steps from this link: https://github.com/GoogleCloudPlatform/dialogflow-integrations/tree/master/twitter but got no success. Can you try helping me on this.

jameskauczka commented 4 years ago

@Animesh2ui That is the same instructions we followed. Although I was able to get it working, it was very unreliable. The issue is mostly on the Twitter side, where the API call out to DialogFlow only waits 3 seconds for a reply. Even with little to no processing in DialogFlow it was taking longer than the timeout to receive the reply DialogFlow continued it's processing and replied but, Twitter was no longer waiting for it. Our solution was to just use Twitter to do an automatic reply with a link to a Google Form that gathered all the information we needed. Until Google and/or Twitter figures out a real integration that works, it's really not viable.

SAKASHITA-YOSHITAKA commented 3 years ago

SAKAMOTO Is it possible to integrate dialogflow and skype? There was an example of twitter, but skype doesn't seem to be waiting for a response either. By the way, it says PLATFORM with the platform subdirectory name., But I asked the dialogflow support center what to specify for this PLATFORM. The answer was that I'm using Skype integration, so I need to replace PLATFORM with skype (the folder name in the Skype integration subdirectory). .. I adopted the skype presented as a sample and entered the following command, but it is an error. gcloud builds submit --tag gcr.io/strategist-demo-qoao/dialogflow-skype Are you waiting for a response? What should I do instead of'skype'? Please give me some advice.

jameskauczka commented 3 years ago

About 18 months ago we got a test of Skype integration working following the guidelines at the time. Dialogflow has since changed their integrations and I have not looked at it. I suspect it is very similar to the Twitter. integration we did.

SAKASHITA-YOSHITAKA commented 3 years ago

Thank you for your answer. It seems that you have the same problem as twitter. I've been trying new methods of dialigflow-skype integration since the end of July, but unfortunately I can't integrate any of them. With the conventional method, it was possible to integrate in one hour. I want you to go back to the original method. Can you please?

From: jameskauczka notifications@github.com Sent: Thursday, September 17, 2020 8:57 PM To: GoogleCloudPlatform/dialogflow-integrations dialogflow-integrations@noreply.github.com Cc: SAKASHITA-YOSHITAKA sakashita@iire.co.jp; Comment comment@noreply.github.com Subject: Re: [GoogleCloudPlatform/dialogflow-integrations] Deploying the Integration Using Cloud Run (#30)

About 18 months ago we got a test of Skype integration working following the guidelines at the time. Dialogflow has since changed their integrations and I have not looked at it. I suspect it is very similar to the Twitter. integration we did.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/dialogflow-integrations/issues/30#issuecomment-694182235 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQRLPCZSMIVRABM6SU4ZTE3SGH2QNANCNFSM4MXI3UNQ . https://github.com/notifications/beacon/AQRLPCZYRDOFZUTW4Q53D43SGH2QNA5CNFSM4MXI3UN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFFQGCWY.gif

khouloud912 commented 3 years ago
  1. Cd C:\Users\xxxxx\Documents\GitHub\dialogflow-integrations
  2. For Twitter I ran: (Your platform will be twillio, same as the subfolder named in above. gcloud builds submit --tag gcr.io/dol-chatbot-test-oarsaj/dialogflow-twitter

gcloud beta run deploy --image gcr.io/dol-chatbot-test-oarsaj/dialogflow-twitter --update-env-vars GOOGLE_APPLICATION_CREDENTIALS=dol-chatbot-test-oarsaj-787814d665cc.json --memory 1Gi

hello , how to test the chatbot after deploying to google cloud platform

epleskunas commented 3 years ago

What should we insert in 'PLATFORM' if we are integrating with Twilio?
gcloud builds submit --tag gcr.io/PROJECT-ID/dialogflow-PLATFORM

Currently we are in the directory where our JSON key file & Github files are located. The command we are running is: gcloud builds submit --tag gcr.io/hackathon2021-ruuc/dialogflow-hackathon2021-ruuc-a0c5877fe414.json

We are getting the following error: *Step 4/8 : COPY ${INTEGRATION}/package.json ./ COPY failed: no source files were specified ERROR ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1**

SAKASHITA-YOSHITAKA commented 3 years ago

I looked at the khould912's comment on March 1st. Did you have a successful Twitter integration? Looking at this comment, I am trying to integrate Twitter from skype integration. I replaced "PLATFORM" in "gcloud builds submit --tag gcr.io/PROJECT-ID/dialogflow-PLATFORM" with "twitter" and executed it. Unfortunately it was an error. "Already have image(with digest):gcr.io/cloud-builders/docker Unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /workspace/Dockerfile: no such file or directory ERROR" Now I am researching because there was a web article of a person who dealt with a similar error. ex https://github.com/Azure/docker-login/issues/11

Ayush1702 commented 2 years ago

@Animesh2ui That is the same instructions we followed. Although I was able to get it working, it was very unreliable. The issue is mostly on the Twitter side, where the API call out to DialogFlow only waits 3 seconds for a reply. Even with little to no processing in DialogFlow it was taking longer than the timeout to receive the reply DialogFlow continued it's processing and replied but, Twitter was no longer waiting for it. Our solution was to just use Twitter to do an automatic reply with a link to a Google Form that gathered all the information we needed. Until Google and/or Twitter figures out a real integration that works, it's really not viable.

Is there any update on Twitter? Want to check the same if someone has managed to integrate successfully. If yes please do ping me on Twitter!

toshiphar commented 1 year ago

I tried to integrate dialogflow with twitter, but the same error has happened. Now that is it impossible to integrate by Dockerfile?