← 返回提示词库
AllIntermediateCoding

提示词链式状态管理工作流

将前序步骤结果存储为变量,动态注入后续提示词,构建多步骤自动化处理流水线。

❤️ 698 likes

📋 提示词全文

为[目标]设计并执行提示词链。步骤1 → 存储为{{变量1}},步骤2使用{{变量1}} → 存储为{{变量2}},步骤3使用{{变量1}}和{{变量2}} → 输出最终结果。每步骤后记录状态变量及结果。若结果不满足要求,重新执行该步骤。

💬 输入示例

目标:竞品分析 → 定位策略 → 营销文案

✨ 输出示例

步骤1:{{竞品分析}}="A品牌主打价格,B品牌主打品质" 步骤2:{{定位策略}}="高端品质,合理定价" 步骤3:最终文案——"选择真正的品质,不妥协于价格"

🏷️ 标签

#提示词链#状态管理#工作流自动化#变量传递#多步骤处理

💡 使用技巧

  • Replace the variables in brackets ([]) with your specific situation.
  • Specify the desired tone and length of writing for more accurate results.
  • Request additional modifications based on the generated output to improve quality.
  • Specifying a particular audience allows AI to adjust vocabulary and explanation level.

🔗 相关提示词

Effective Writing Strategies with AI

AI writing prompts let you efficiently produce blog posts, business emails, press releases, novels, and more. The key is to assign AI a precise role, and clearly specify the desired tone, length, and target audience. For example, requesting "write a 2000-word SEO-optimized blog post in a professional tone" yields significantly higher-quality output. After generating a draft, iterative feedback helps elevate the final quality step by step.

This prompt belongs to the Coding category, optimized for All at a Intermediate level. It is systematically designed applying core prompt engineering principles: role assignment, context setting, and constraints.

Explore More Prompts

Discover 90+ verified prompts in the PromptGenie library.

Browse Library