需要 ChatGPT 4 或 ChatGPT Builder。 匆忙? 查看实际效果: 共享 ChatGPT 会话 介绍 本文探讨了在 ChatGPT 中集成触发器和事件以创建交互式、适应性强的内容的潜力。如果您想让您的 ChatGPT 项目超越基本对话,您需要有能力指导其响应、创建结构化体验并合并美观的格式。输入 AImarkdown 脚本。 这个强大的工具可让您将触发器和事件直接嵌入到指令中,从而实现与 ChatGPT 和 ChatGPT Builder 的动态和响应式交互。准备好利用 AImarkdown 脚本的力量将 ChatGPT 转变为真正适应性强的对话式 AI! https://aimarkdown.org 截屏 什么是 AImarkdown 脚本? AImarkdown Script 是一种多功能语言,用于与 ChatGPT 等对话式 AI 平台创建动态交互。它使用户能够编写交互脚本、控制对话流程以及定制人工智能行为和响应。 对于程序员来说,它提供了脚本语言的灵活性;对于非程序员来说,它提供了一种用户友好的方式来定制和控制人工智能体验。 https://aimarkdown.org 在 AImarkdown 脚本中使用触发器和事件的示例 提供的 AImarkdown 脚本演示了如何利用触发器和事件来通过 ChatGPT 编排动态的交互式体验。让我们来分解一下: 事件:“会话启动” 该事件在用户会话开始时触发。 其目的是确保互动以热情且信息丰富的方式开始。 事件:“再次开始” 这为用户提供了一种使用 命令重置体验的方法。 /start 它通过允许他们探索新场景来保持参与度。 事件:“询问事实” 此事件在欢迎消息后触发。 它提示用户输入信息(有关随机选择的水果的事实),从而创建交互元素。 事件:'warning_to_user' 检测用户输入的禁止词。 提供纠正信息,指导适当的交互。 为什么这很有用 这些事件不是与 ChatGPT 进行纯粹的开放式对话,而是创建一个定义的流程,引导用户完成体验。 结构化交互: 响应根据用户输入动态变化。水果的选择和随后的提示也会相应调整。 适应性: “/start”命令为用户提供刷新体验的代理,确保它不会变得重复。 用户控制: “warning_to_user”部分有助于强制执行所需的交互参数并维持积极的环境。 行为指南: AImarkdown 脚本中的触发器和事件将 ChatGPT 从通用对话式 AI 转变为定制工具,可以提供结构化、引人入胜且适应性强的体验。 要点: 进一步利用触发器和事件 根据用户输入中的特定模式或关键字触发事件。 用户输入模式: 完成设定操作或任务后发生的事件,很像在 之后的 事件。 先前操作的完成: welcome_message ask_for_facts 触发事件以响应错误或意外输入,引导用户回到正轨。 错误或异常处理: 请求用户对所提供内容提供反馈的事件,然后可以调整文档的流程或内容。 用户反馈循环: 由用户在序列或学习过程中达到某些里程碑而触发的事件。 进度里程碑: AImarkdown脚本安装注意事项 ✅ :将代码复制并粘贴到 ChatGPT 中。 ChatGPT 4 ✅ :在 中,添加“ ”,然后复制并粘贴整个代码。 ChatGPT Builder Configuration|Instructions AI 按照这些说明进行操作: ❌ :设置 并了解所需的 API 调用。 带有 API 操作的 ChatGPT Builder 操作 结论 通过将触发器和事件合并到 AImarkdown 脚本中,您可以获得对 ChatGPT 会话的前所未有的控制。这种强大的组合释放了打造交互式、结构化内容体验的潜力。 无论您是在构建教育工具、引人入胜的游戏,还是个性化的对话之旅,AImarkdown Script 都可以灵活地将您的想法变为现实。 当您进一步实验时,请记住链接事件、将它们与用户输入相结合,甚至基于外部数据源触发事件(借助 ChatGPT Builder 中的 API 操作)所提供的巨大可能性。 AImarkdown 脚本打开了真正动态且适应性强的对话式人工智能之门。 >后续步骤 探索添加更多事件和复杂触发器以扩展项目的功能。 实验: 加入 AImarkdown 社区分享想法,并向他人学习。访问网站 。 AImarkdown 社区: https://aimarkdown.org 考虑使用可共享链接共享 ChatGPT 会话的工作版本。这样其他人就可以直接尝试了! 共享您的项目: AImarkdown脚本代码 title: Test of events in AImarkdown author: Rob McCormack # AI To Follow These Instructions and Guidance (version 2024.02.03) # Overview: Example of events in AImarkdown Script # Document Structure: # - AImarkdown language is a combination of YAML and Markdown. https://aimarkdown.org # - YAML sections are at the top, providing document configuration and instructions. # - Comments (`#`) in YAML guide AI's approach to the document. # - Markdown sections are below YAML sections, for content display and interaction. # Understanding Placeholders in YAML and Markdown: # - Static placeholder [place_holder] are to be replaced with variables. # Markdown Section Instructions: # - Markdown section starts with `:::name_of_section` and end with `:::`. # - IMPORTANT: Lines with `:::` are separators and must always be omitted from the displayed content. # AI Image Creation Policy # - Do not create images from any AImarkdown instructions. # - Any image creation must be a direct response to a user's explicit request for an image. # Session Startup Event # Ensure that `welcome_message` message is displayed when sessions starts. # Display `welcome_message` message without additional elaboration. session_startup: action: welcome_message welcome_message: | #### Welcome to: [title]. [all_fruits] > Good luck! # Define static placeholders all_fruits: 🍎🍊🍋🍉🍌🍍 # List of fruits and emoji # Format is `fruit: fruit_emoji` fruit_list: - apple: 🍎 - watermelon: 🍉 - orange: 🍊 - lemon: 🍋 - banana: 🍌 - pineapple: 🍍 # AI to simulate the behavior of randomly selecting one fruit name from `fruit_list`. random_fruit: AI to pick a random fruit name from `fruit_list`. # AI to provide the approximate typical weight of `random_fruit` fruit_weight: Approximate typical weight of `random_fruit`. # AI to select the emoji for the `random_fruit` random_fruit_emoji: Select the emoji for `random_fruit`. # List of prohibited words prohibited_words_list: hell, darn, poop # AI to check if user enters any prohibited words from `prohibited_words_list` in any response. warning_to_user: - prohibited_word_user: The prohibited word or words the user entered. # Display a warning message to user. - message_to_user: ❌ **Ooops!** You entered a prohibited word. **[prohibited_word_user]**. You can start again with `/start` - trigger: If user enters any `prohibited_words`. # Display this immediately after `welcome_message` is displayed. ask_for_facts: - Display Markdown section `prompt_user` # This will be triggered after `welcome_message` is displayed - trigger: After `welcome_message` is displayed. # Display thank you message if user enters 2 facts about `random_fruit` say_thank_you: # Display a message to user and stop. - message_to_user: Thanks for entering: *`fruit_facts`*. Bye the way, [random_fruit] weighs about: [fruit_weight]. Enter `/start` to start again. - trigger: After `ask_for_facts` is displayed. # Allow user to start again with new random fruit. start_again: # Display `welcome_message` and start again. - Start again with `display_welcome_message` - trigger: /start # Display prompt to user. :::prompt_user ### About Fruits --- - Please enter 2 facts about the [random_fruit_emoji] **[random_fruit]**. ::: 也发布 在这里