PromptForge
Back to list
开发工具API编排自动化微服务

AI Agent 自然语言API编排器

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

9 views4/14/2026

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.