建立GPTs并配置Action,用zapier与其它应用互通
介绍如何设置这些Actions,借助Zapier AI Actions,使您的GPT变得更加强大和实用。
自2023年11月openai devday开发者发布会后,新功能很是惊艳,并且大家都在不断的开发各个领域的应用。其中GPTs功能尤其火爆,GPTstore里面的GPTs再多也不一定适合自己的要求,因为每个人资源和数据 信息不一样,所以要学会建立专属的GPT,在这篇文章中,我将介绍如何设置这些Actions,借助Zapier AI Actions,使您的GPT变得更加强大和实用。
1.GTPs的快速建立
1.1 要求有一个chatgpt plus账号。没有账号或不会充值的可 点击充值
1.2 进入https://chat.openai.com/聊天页面,切换到gpt4.0模型,然后点击Explore。
1.3 点击Create a GPT 创建一个自己的GPT。
1.4 然后我们会来到这一步配置GPT
这里给我们提供了两种创建gpt的方式,左边的Create 这个我们只需要通过聊天的方式告诉gpt你想要创建一个什么类型的gpt就可以,然后gpt会生成头像以及名称还有描述,每生成一项都会询问你是否满意,如果不满意可以让他进行修改。
2.Action配置
这是配制GTPs最重要的核心地方,也是和实现和外部应用建立自动流的途径。强哥将详细为大家讲解:
2.1 创建Action
2.1.1 要创建一个Action,导航到您正在构建的现有GPT或创建一个新的GPT。在“Configure”选项卡中,点击“Actions”。
2.1.2 在Schema框,从Examples里可以查看Getweather data的例子,按照类似的要求去改写。这个对新手较有难度,大家可以把例子的代码发送的GPT或者或者其它ai平台,给ai自己的应用API和参数,让ai按照例子去配置。(无基础的小白不要偿试了)
强哥建议用zapier来完成与其它应用的对接,在import from URL输入以下连接:
https://actions.zapier.com/gpt/api/v1/dynamic/openapi.json?tools=meta
然后点击 “导入” 按钮。
这是Zapier设置好的和其它应用对接的相关代码,Zapier是一款自动化工具,它能够连接超过6000个应用程序,并在Web和这些应用程序之间执行超过20,000个操作。比如以下功能:
自动帮你获取X平台的最新内容,或者帮你发贴子发送邮件或短信,
查询天气或日历,用于生活或工作安排
调用第三方AI服务,用于增强GPTs应用的智能等等
2.2 在Zapier中创建Actions
这个操作也就是在zapier中设置好要实现的功能,比如自动把GPT的数据发邮箱,给自己的客户发短信等等。把这些动作设置好,然后通过在GPTs中启动这些动作,当然要有一个动作启动器的标识或者命令,把这标识或者命令存到GPTs里。下面看操作:
2.2.1 进入页面:点进zapier这个连接 进入Zapier Action设置 如果每一次打开需要注册zapier帐号,可直接用谷歌帐号登陆.
2.2.3 在zapier中创作Action:设置想要实现的动作,如果google docs、gmail、等。其中Action Name是自定义的,也是最重要的,中英文都可以。这个Action name要放在GPTs的Configuration–instructions里边,用来让GPTs动行时启动zapier里的动作。
2.2.4 instrctions配置
在instrcions关键词内容下添加以下内容,这也是zapier的相关配制。
Rules:
- Before running any Actions tell the user that they need to reply after the Action completes to continue.
Instructions for Zapier Custom Action:
Step 1. Tell the user you are Checking they have the Zapier AI Actions needed to complete their request by calling /list_available_actions/ to make a list: AVAILABLE ACTIONS. Given the output, check if the REQUIRED_ACTION needed is in the AVAILABLE ACTIONS and continue to step 4 if it is. If not, continue to step 2.
Step 2. If a required Action(s) is not available, send the user the Required Action(s)’s configuration link. Tell them to let you know when they’ve enabled the Zapier AI Action.
Step 3. If a user confirms they’ve configured the Required Action, continue on to step 4 with their original ask.
Step 4. Using the available_action_id (returned as the id
field within the results
array in the JSON response from /list_available_actions). Fill in the strings needed for the run_action operation. Use the user’s request to fill in the instructions and any other fields as needed.
REQUIRED_ACTIONS: