我有实时版本时测试api

我有实时版本时测试api

本文介绍了我有实时版本时测试api.ai Google Action版本吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我已经有一个可供用户使用的版本时,如何在单独的测试环境中开发新版本的Google Action?

How do I develop a new version of my Google Action in a separate test environment, while I already have a version that is live to users?

我的Google Action使用具有实现功能的Firebase功能的api.ai。

My Google Action uses api.ai, which has a Firebase Function for fulfilment.

我是否需要创建一个指向不同Firebase功能的新api.ai代理?有没有更简单的方法?

Do I need to create a new api.ai agent that points to a different Firebase Function? Is there an easier way?

推荐答案

不幸的是,确实没有一个简单的解决方案。 API.AI和Actions的版本控制存在一些问题。首先是您对API.AI所做的某些更改可能会在系统中立即反映,但其他更改不会,并且尚不清楚哪个是哪个。第二个是,一旦您准备好将其实时发送并通过批准过程,则在一段时间内,有些用户会看到您的旧版本,而有些用户会看到新版本。

Unfortunately, there really isn't an easy solution to this. There are a few problems with versioning with API.AI and Actions. The first is that some changes you make in API.AI may be reflected immediately in the system, but others won't, and it isn't entirely clear which is which. The second is that once you're ready to send it live and go through the approval process, some users will see your old version and some will see the new version for a period of time.

要处理此问题,当一个版本发布后,我将使用以下过程:

To handle this, I use this process once a version goes live:


  1. 创建新的Firebase和API下一版本的.AI项目。

  1. Create a new Firebase and API.AI project for the next version.

从旧项目中导出API.AI Zip文件,并将其导入到新项目中。 (虽然我在使用它,但我将其内容放入版本控制中。)

Export the API.AI Zip file from the old project and import it into the new project. (While I'm at it, I put its contents into version control.)

将Firebase部署目标更改为新版本。

Change the Firebase deployment target to the new version.

将API.AI的实现URL更改为新的URL。

Change the API.AI fulfillment URL to the new URL.

然后您将在此新环境中开发和测试新版本。当您准备对其进行发布审阅时,请指定此环境。一旦完全启用,并且在旧环境中没有任何流量,您就可以淘汰它-您将永远不会重复使用它。

You'll then develop and test your new version in this new environment. When you're ready to have it reviewed for release, specify this environment. Once it fully goes live and you get no traffic in your old environment, you can retire that one - you'll never re-use it.

这篇关于我有实时版本时测试api.ai Google Action版本吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 12:13