Explain the following text. Enter a memorable name so you can easily find and run…
- User
User: Explain the following text.
Enter a memorable name so you can easily find and run it later, e.g. "Rephrase as Tweet". Enter a suitable prompt. For example, you can write something like "Rephrase the following text to make it a tweet". Here's the fun part! To achieve the required functionality, you'll need to add a special parameter that tells the extension to pass the selected text or input text to the AI. For instance, {input} or {selection} gets the input (selected) text. ℹ️ We call this feature dynamic placeholders, and you can read more about them here.
Your final product would look something like this! Just press Save to create your custom command. Assistant: The text provides instructions for creating a custom command using an extension that interacts with an AI. Here’s a breakdown of the key points:
-
Memorable Name: The user is encouraged to give their command a memorable name, like "Rephrase as Tweet," to easily find and execute it later.
-
Prompt Creation: Users should enter a prompt for what they want the AI to do, such as "Rephrase the following text to make it a tweet".
-
Dynamic Placeholders: The text explains the need to include a special parameter that allows the extension to send selected or input text to the AI for processing. Examples of these parameters are
{input}or{selection}, which will automatically insert the relevant text. -
Instructions for Saving: Finally, once the user has set up their command with a name, prompt, and dynamic placeholders, they can save it to create their custom command.
The overall purpose is to guide users on how to set up a personalized function that leverages AI to process text based on their specifications. User: 中文回答 Assistant: 这段文字提供了关于如何使用一个与AI互动的扩展创建自定义命令的说明。以下是关键点的总结:
-
可记忆名称:用户被鼓励为他们的命令指定一个易于记忆的名称,比如“转化为推文”,以便稍后能够轻松找到和执行它。
-
提示内容创建:用户应输入一个提示,说明他们希望AI执行的任务,例如“将以下文本转化为推文”。
-
动态占位符:文本解释了需要添加一个特殊参数,以便扩展能够将选定的文本或输入的文本传递给AI进行处理。这些参数的例子包括
{input}或{selection},它们将自动插入相关文本。 -
保存指示:最后,一旦用户设置好他们的命令,包括名称、提示和动态占位符,他们可以保存该命令,创建自定义功能。
整体目的是指导用户如何设置一个个性化的功能,利用AI根据他们的规定处理文本。 User: 如何修改 Assistant:
-
- Assistant
要修改上述文本中的内容,可以按照以下步骤进行:
-
更改名称:如果您希望自定义命令的名称更加个性化或更具描述性,可以直接编辑名称。例如,可以将“转化为推文”更改为“推文格式化”。
-
调整提示内容:您可以根据具体需求调整提示内容,以使其更清晰或更具针对性。例如,将“将以下文本转化为推文”改为“请将以下内容精简为推文形式”。
-
替换动态占位符:如果您希望使用其他占位符,您可以根据扩展支持的动态占位符进行替换,确保它们能正确传递所需的文本。确保您了解每个占位符的具体功能。
-
更新保存指示:如果保存过程有所不同,或需要提供额外的操作步骤,请相应更新保存的指示内容。
-
添加示例:如果需要,您可以添加更多示例,以帮助用户更好地理解如何使用这些功能。
修改后的文本示例:
输入一个容易记住的名称,例如“推文格式化”,以便您可以轻松找到并后续使用。 输入一个合适的提示内容。例如,您可以写“请将以下内容精简为推文形式”。 有趣的是!为了实现所需功能,您需要添加一个特殊参数,告诉扩展将所选文本或输入文本传递给AI。例如,使用{input}或{selection}来获取输入的(选定)文本。 ℹ️ 我们称这一功能为动态占位符,您可以在这里了解更多信息。 您的最终产品看起来会像这样!只需点击保存即可创建您的自定义命令。通过以上步骤,您可以自由修改并适应文本内容,以满足特定的需求或偏好。
-