您在此处:
将提示模板用作操作
将提示模板添加为另一个提示模板中的操作,以重复使用逻辑并标准化响应的生成方式。从一个提示模板调用另一个提示模板,以构建更一致的模块化提示工作流。

使用更普遍的搜索词。
选择更少的筛选器,并扩大搜索范围。
将提示模板添加为另一个提示模板中的操作,以重复使用逻辑并标准化响应的生成方式。从一个提示模板调用另一个提示模板,以构建更一致的模块化提示工作流。
| 适用于:Lightning Experience |
| 适用于:Enterprise、Performance 和 Unlimited Edition,带有 Einstein for Platform、Einstein 或适用于销售的 Agentforce 或 Service 加载项、Agentforce Foundations |
提示模板操作从一个提示模板调用另一个提示模板。
在用作操作时,引用的提示模板会在执行期间运行。它根据其输入生成响应,该响应返回到主提示。提示模板可以链接在一起,以创建提示链,其中每个模板都基于上一个模板。
将提示模板用作操作有助于在多个模板中重复使用提示逻辑。它标准化了常见用例的输出,并帮助将复杂的提示分成更小的、可管理的部分。
在提示中引用提示模板操作的输出。
Summarize the following response: {!Prompt_Template_Action_Output}
在提示运行时,提示模板操作会执行,其响应将成为最终输出的一部分。

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.