首页 > 解决方案 > 如何在 dialogflow-intégrations 中进行多重集成(twitter + skype)

问题描述

我使用https://github.com/GoogleCloudPlatform/dialogflow-integrations

我设法让 twitter 然后 Skype 工作,但是当我改变 ENV INTEGRATION 时,突然之间我们如何让两者都工作,我不明白。

标签: google-cloud-platformtwitterdialogflow-esskype

解决方案


我在dockerfile中试过了

# Use the official Node.js 10 image.
   # https://hub.docker.com/_/node
   FROM node:10

   # Create and change to the app directory.
   WORKDIR /usr/src/app

   # Set this environmental variable to the integration you want to use
   ENV INTEGRATION=twitter
   ENV INTEGRATION2=skype

   # Copy application dependency manifests to the container image.
   # A wildcard is used to ensure both package.json AND package-lock.json are copied.
   # Copying this separately prevents re-running npm install on every code change.
   COPY ${INTEGRATION}/package*.json ./
   COPY ${INTEGRATION2}/package*.json ./

   # Install production dependencies.
   RUN npm install --only=production

   # Copy local code to the container image.
   COPY . .

   # Run the web service on container startup.
   WORKDIR ${INTEGRATION}
   CMD [ "npm", "start" ]
    WORKDIR ${INTEGRATION2}
    CMD [ "npm", "start" ]

这在安装过程中没有产生错误,但是在部署时这产生了一个错误,比如端口无法打开所以我尝试更改 Skype 节点的端口全部重做安装并产生相同的错误我也尝试过复制目录并安装skype 不幸的是twitter没有工作,服务器地址保持不变,这就是为什么我打开这个话题,因为我正在晒它!

有关于此的注释,但我不明白该怎么做。 https://github.com/GoogleCloudPlatform/dialogflow-integrations#multiple-integrations 如果你理解得更好


推荐阅读