Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

建立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会生成头像以及名称还有描述,每生成一项都会询问你是否满意,如果不满意可以让他进行修改。

以上操作非常简单,大家可参考我的youtube视频。

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:
- Action: 填zapier中的action name
  Confirmation Link: zapier action name网页地址。
#最后的动作代码格式也可写成这样:
REQUIRED_ACTIONS:
- Action:填zapier中的action name
{available_action_id}:比如01HFRDK7WF8Z4VKGPDHTV4H1EY
#如果有多个动作在zapier设置好后也是这样添加。

设置好保存,就完成了。在第一次运行GPTs时,可能需要在zapier进行授权,在GPTs对话时会有提醒。

最后,关于详细的教程,强哥会分享在youtube频道里,视频很详细,欢迎大家观看!

15 评论

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注

  1. Hey I know this is off topic but I was wondering if you knew
    of any widgets I could add to my blog that automatically
    tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would
    have some experience with something like this. Please let me know if you
    run into anything. I truly enjoy reading your blog and I
    look forward to your new updates.

    my web site: vpn coupon 2024

  2. First of all I would like to say superb blog! I
    had a quick question that I’d like to ask if you
    do not mind. I was curious to know how you center yourself and clear
    your thoughts prior to writing. I have had trouble clearing my thoughts
    in getting my ideas out. I truly do take pleasure in writing but it just seems
    like the first 10 to 15 minutes are generally lost just trying to figure out how to begin. Any
    recommendations or hints? Thank you!

    Have a look at my blog vpn coupon 2024

  3. Somebody essentially assist to make critically posts I would state.
    This is the very first time I frequented your website page and up to now?
    I surprised with the research you made to create this particular post extraordinary.
    Wonderful task!

    my blog post … vpn special

  4. Unquestionably believe that that you stated. Your favourite reason seemed to be at
    the internet the simplest thing to take into account of.
    I say to you, I definitely get irked at the same time as other folks consider
    worries that they just don’t understand about.

    You managed to hit the nail upon the highest
    and also outlined out the entire thing with no need side
    effect , people can take a signal. Will probably be again to get more.
    Thanks

    Feel free to visit my web page; nordvpn special coupon code 2024