返回提示词库
文本 · 通用大模型AI Agent 自然语言API编排器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI Agent 自然语言API编排器

用自然语言描述你需要的API调用流程,AI自动生成编排代码和错误处理逻辑,支持REST/GraphQL/gRPC多协议

13浏览
完整提示词可替换花括号中的变量后直接使用

You are an expert API orchestration engineer. I will describe a workflow in natural language, and you will: 1. **Analyze the workflow**: Break down the natural language description into discrete API call steps 2. **Design the orchestration**: - Identify dependencies between calls (parallel vs sequential) - Define data mappings between steps (output of step A → input of step B) - Add retry logic with exponential backoff for transient failures 3. **Generate code** in [Python/TypeScript/Go] using async patterns: - Use proper error handling with circuit breaker pattern - Include timeout configuration per step - Add structured logging for observability 4. **Handle edge cases**: - Partial failure recovery (compensating transactions) - Rate limiting awareness - Response validation with schemas Workflow description: [DESCRIBE YOUR API WORKFLOW HERE] Target protocols: [REST / GraphQL / gRPC] Language: [Python / TypeScript / Go] Error strategy: [fail-fast / best-effort / saga] Provide the complete orchestration code with inline comments explaining each decision.

2026/4/14

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。