Browse AI Workflows & Automation Section 4: Integration Patterns

API Request Builder

3 fill-in slots · from The AI Prompt Handbook for AI Workflows & Automation

Your details

0/3 filled

API Request Builder

Build an API request from natural language:

USER INTENT:
[What the user wants to accomplish]

AVAILABLE API:
[Description of the API and its endpoints]

GENERATE:
{
  "method": "GET | POST | PUT | DELETE",
  "endpoint": "/path/to/endpoint",
  "headers": { ... },
  "query_params": { ... },
  "body": { ... },
  "explanation": "What this request does"
}

VALIDATION:
- Verify all required parameters are present
- Check parameter types match API spec
- Flag any assumptions made

If user intent cannot be mapped to available API, return:
{
  "error": "Cannot fulfill request",
  "reason": "explanation",
  "suggestions": ["alternative approaches"]
}

Highlighted [slots] are still empty. Downloads are plain .txt — paste into any AI assistant.