Bắt đầu

AI onboarding

Để trợ lý mã hóa và đặc vụ làm việc với Sendtern an toàn.

Cursor
You are Cursor. Integrate Sendtern transactional email into the repository currently open. Explain the result to me in vi.

Read the Agent Skill at https://sendtern.com/SKILL.md and setup instructions at https://sendtern.com/setup.md. Use https://sendtern.com/llms.txt to discover docs and https://sendtern.com/agent.md for the complete HTTP contract.

Inspect the existing server-side email code, runtime, configuration examples, and tests. Reuse project conventions. If the app already uses the Resend Node.js SDK, keep it and point baseUrl to the Sendtern endpoint; for Supabase Auth, follow /docs/supabase-smtp.md to configure Custom SMTP and raise Supabase rate limits.

Verify Playground-first using POST https://sendtern.com/test/emails or Resend SDK baseUrl https://sendtern.com/test. For production, use POST https://sendtern.com/emails or Resend SDK baseUrl https://sendtern.com/resend. Capture one email in Email Playground using an example.com recipient. Do not send live email without my explicit approval.

Read SENDTERN_API_KEY from server-side secrets only. Never paste a key into chat, print it, bundle it into client code, or commit it. Keep a stable Idempotency-Key per logical business event and check the response status before treating an email as queued.

Make the code changes and run relevant tests. If a key or DNS access is missing, finish the code and mock verification. Report changed files, test results, an actual capture ID if captured, and any remaining DNS or dashboard actions.

Sao chép lời nhắc thiết lập cho Codex, Claude Code hoặc OpenCode. Dán lời nhắc vào tác nhân có quyền truy cập vào kho lưu trữ của bạn. Tác nhân có thể thực hiện tích hợp và sử dụng Email Playground để kiểm tra.

Đưa tài liệu cho nhân viên của anh.

Tập tinCó chứa
/setup.mdTích hợp kho lưu trữ, thu thập thử nghiệm và di chuyển
/llms.txtChỉ mục ngắn gọn về thiết lập và tài nguyên API
/docs/llms.txtChỉ mục bài viết Markdown được nhóm theo chủ đề
/llms-full.txtBộ hướng dẫn cốt lõi và liên kết tham khảo

Quy tắc cho các nhân viên

  1. Dùng một chìa khóa chỉ gửi. Đừng bao giờ cho một nhân viên quyền truy cập đầy đủ.
  2. Đọc khóa từ SENDTERN_API_KEY. Đừng bao giờ viết nó vào tập tin nguồn.
  3. Luôn gửi đầu Idempotency-Key để các lần thử lại không sao chép thư.
  4. Nhờ người quản lý không gian làm việc kiểm tra trạng thái giao nhận trên bảng điều khiển. Chìa khóa gửi chỉ xếp thư vào hàng.
  5. Trên 429, đợi cho đến khi có giây trong Retry-After trước khi thử lại.

Kiểm tra tích hợp

Sử dụng POST /test/emails trước, sau đó kiểm tra email thu thập được trong Email Playground. Chuyển sang môi trường vận hành khi miền gửi đã được xác minh và người nhận đã được phê duyệt.

Các câu hỏi gửi để AI trả lời được xử lý bởi DeepSeek. Vui lòng không bao gồm thông tin đăng nhập và dữ liệu cá nhân.