Construa no seu próprio projeto.

Use os mesmos exemplos de SDK das páginas de produto do Bird e depois forneça ao seu agente de código um briefing que inclua os caminhos de falha que você praticou.

Prática interativa · Inglês

Make your first message land.

A customer places an order. Give them a clear, personal confirmation, and know what happens after you send.

Este exercício no navegador simula mensagens. O seu trabalho permanece aqui até sair. Inicie sessão para guardar o progresso e as avaliações.

Personalize the order confirmation, then send it to the practice inbox.

Resultado da prática

Your practice output will appear here.
Mostrar uma dica

Use a customer name and an order number. Then send the message and watch the status change.

Continuar com a aprendizagem guardada

Enviar para o sandbox de e-mail

Configure o SDK e a chave de API no seu próprio ambiente de servidor. Este exemplo usa o destinatário de teste autorizado do Bird.

1
2
3
4
5
6
7
8
9
10
// Install the SDK
// npm install @messagebird/sdk

const msg = await bird.email.send({
  from: { email: "onboarding@messagebird.dev", name: "Bird" },
  to: ["delivered@messagebird.dev"],
  subject: "Hello from Bird",
  html: "<p>My first Bird email.</p>",
});
console.log(msg.id, msg.status); // "em_…", "accepted"

Um briefing para o seu agente de código

# Build with Bird: Email

Read these current sources before proposing an implementation:

- Send your first email: https://bird.com/docs/get-started/send-your-first-email
- Email: https://bird.com/email-api

## Task

Help me implement Email in my project. First inspect the application and identify the relevant server, framework and existing Bird integration. Confirm the exact workflow and supported surface against the linked documentation. Some operations are available only in the dashboard. Do not invent endpoints or derive API contracts from a learning simulation.

## Implementation

Use the official Bird SDK or CLI where supported. Keep credentials on the server and request the smallest necessary permissions. Follow the channel's documented test procedure before proposing any external send or production change.

Keep request acceptance separate from delivery. For incoming events, verify signatures using the original request body, deduplicate stable identifiers, and apply valid state transitions. Respect recipient preferences and channel requirements.

## Acceptance

Show the implementation and relevant tests. Exercise the documented failure paths, invalid signatures and duplicate events where applicable. Explain any dashboard steps or missing prerequisites. Ask for approval before sending to real recipients or changing production.

Sua próxima ideia. Pronta para conectar.