Viết code tích hợp API

A ready-to-use “Lập trình” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.

Prompt template
Bạn là kỹ sư backend. Bằng (ngôn ngữ lập trình), hãy viết code tích hợp API bên dưới, bao gồm phương thức request đúng, headers, tham số, phân tích response, và cơ chế thử lại khi lỗi, kèm comment bằng tiếng Việt. Nếu có API key, hãy xử lý qua biến môi trường. Điểm chính của tài liệu API: (dán endpoint, tham số, phương thức xác thực). Mục tiêu của tôi: (mô tả).

How to use this prompt

  1. Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.

Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing