# Alerts in Microsoft Teams, Telegram and WhatsApp for short-form content teams

> The lulubanana messaging API sends your alerts (breakout videos, trends, ready ideas, channel outliers, briefs, drafts to review and more) to a Microsoft Teams channel as a card with an "Open in Lulubanana" button, to a Telegram chat linked with one tap, or to WhatsApp as a short service message with a link after you confirm your number with a code. Each channel has its own events, failed messages are retried automatically, and everything is included: 0 credits.

lulubanana is a content research platform and API for short-form video (TikTok, YouTube Shorts and Instagram Reels). Base address: https://lulubanana.com/api/v3. Authentication: `Authorization: Bearer lb_...`. Reads are free; collection is priced like the app.

## 6 things you can do with the Teams, Telegram and WhatsApp alerts

1. Send alerts to a Teams channel through the Workflows app (POST /integrations/teams): a card with the title, the facts and an "Open in Lulubanana" button
2. Link a Telegram chat with a one-time link (POST /integrations/telegram/link) and pause or resume alerts from the chat with /stop and /start
3. Get alerts on WhatsApp after confirming your number with a 6-digit code (POST /integrations/whatsapp, then /integrations/whatsapp/{id}/confirm)
4. Choose the events for each channel, from breakouts to ready Fusion Engine ideas
5. See every channel with its health and switch it off or back on with /webhooks
6. Rely on automatic retries; a chat that blocked the bot or a removed app is switched off instead of being retried

## How it works

1. Teams: in the channel, add the Workflows app's "Send webhook alerts to a channel" flow, copy its address and POST /integrations/teams with it and your events.
2. Telegram: POST /integrations/telegram/link, open the link and press Start; the chat is linked (the link works once, for 10 minutes).
3. WhatsApp: POST /integrations/whatsapp with your number (E.164, e.g. +14155550123), then send the 6-digit code it receives to /integrations/whatsapp/{id}/confirm.

In the dashboard: Settings -> Integrations (https://lulubanana.com/app/dashboard/#/settings/integrations)

## Connect Teams, Telegram and WhatsApp

Replace lb_YOUR_KEY with a key from Settings -> API. Each channel gets only the events you list (all when left out).

### Microsoft Teams: the Workflows address of your channel

```bash
curl -X POST https://lulubanana.com/api/v3/integrations/teams -H "Authorization: Bearer lb_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"url":"https://prod-27.westus.logic.azure.com:443/workflows/...","events":["alert","trend","fusion"]}'
# a test card arrives in the channel at once
```

### Telegram: a one-time link to open and press Start

```bash
curl -X POST https://lulubanana.com/api/v3/integrations/telegram/link -H "Authorization: Bearer lb_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"events":["alert","fusion","channel"]}'
# -> {"data":{"link":"https://t.me/<bot>?start=<token>","expires_at":"..."}}  (works once, for 10 minutes)
```

### WhatsApp: add your number, then confirm the 6-digit code

```bash
curl -X POST https://lulubanana.com/api/v3/integrations/whatsapp -H "Authorization: Bearer lb_YOUR_KEY" -H "Content-Type: application/json" -d '{"phone":"+14155550123","events":["alert"]}'
curl -X POST https://lulubanana.com/api/v3/integrations/whatsapp/43/confirm -H "Authorization: Bearer lb_YOUR_KEY" -H "Content-Type: application/json" -d '{"code":"482913"}'
```

## Key terms

- **Teams Workflows address**: The address of a "Send webhook alerts to a channel" flow (it ends in logic.azure.com or powerplatform.com). It carries its own key, so it is stored sealed and shown shortened.
- **Adaptive Card**: The message format Teams shows: the alert title, its text, a few facts (views, ratio, stage, ...) and an "Open in Lulubanana" button. At most 28 KB; longer text is shortened.
- **Link token**: The one-time part of the Telegram link (...?start=<token>). It is stored as a hash and works once, for 10 minutes.
- **Template message**: WhatsApp only allows approved templates outside a conversation. Lulubanana uses one service (utility) template: the alert in one line and its link. Never marketing.

## Endpoints

### POST /api/v3/integrations/teams

Send alerts to a Microsoft Teams channel: in Teams, add the Workflows app's "Send webhook alerts to a channel" flow, copy its address (it ends in logic.azure.com or powerplatform.com) and send it here with the events you want (any of alert, creator, trend, run, analysis, search, digest, mirror, fusion, channel, brief, handoff, calendar; all when left out). Each alert is a card with the title, the facts and an "Open in Lulubanana" button. A test card is sent at once. Counts in the 10 integrations per account. Free.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `url` (required) | body | string | The Teams Workflows webhook address (https://...logic.azure.com/... or ...powerplatform.com/...) |
| `events` | body | array | Any of alert, creator, trend, run, analysis, search, digest, mirror, fusion, channel, brief, handoff, calendar (default all) |

```bash
curl -X POST "https://lulubanana.com/api/v3/integrations/teams" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://prod-27.westus.logic.azure.com:443/workflows/8f2c.../triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=...","events":["alert","trend","fusion"]}'
```

Example reply:

```json
{
  "data": {
    "id": 42,
    "kind": "teams",
    "label": "https://prod-27.westus.logic.azure.com/...Rk8Q",
    "url": "https://prod-27.westus.logic.azure.com/...Rk8Q",
    "events": [
      "alert",
      "trend",
      "fusion"
    ],
    "types": null,
    "active": true,
    "failures_in_a_row": 0,
    "source": "api",
    "pending": false,
    "disabled_reason": null,
    "last_status": null,
    "last_delivery_at": null,
    "created_at": "2026-11-24T09:30:00.000Z",
    "test_job_id": 1008
  }
}
```

### POST /api/v3/integrations/telegram/link

Link a Telegram chat for alerts: answers {link, expires_at}. Open the link (https://t.me/<bot>?start=...) and press Start; the chat then gets the events you chose (any of alert, creator, trend, run, analysis, search, digest, mirror, fusion, channel, brief, handoff, calendar; all when left out). The link works once, for 10 minutes; /stop in the chat pauses alerts, /start switches them back on. Up to 20 links a day. Free.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `events` | body | array | Any of alert, creator, trend, run, analysis, search, digest, mirror, fusion, channel, brief, handoff, calendar (default all) |

```bash
curl -X POST "https://lulubanana.com/api/v3/integrations/telegram/link" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"events":["alert","fusion","channel"]}'
```

Example reply:

```json
{
  "data": {
    "link": "https://t.me/lulubanana_bot?start=Qm8xT2pLr4Wv9ZkN3Hs7YcB1",
    "expires_at": "2026-11-24T09:40:00.000Z",
    "bot": "@lulubanana_bot",
    "events": [
      "alert",
      "fusion",
      "channel"
    ],
    "how": "Open the link on a phone or computer with Telegram and press Start. It works once, for 10 minutes. Send /stop in the chat to pause alerts and /start to switch them back on."
  }
}
```

### POST /api/v3/integrations/whatsapp

Get alerts on WhatsApp: send the phone number (E.164, e.g. +14155550123) and the events (any of alert, creator, trend, run, analysis, search, digest, mirror, fusion, channel, brief, handoff, calendar; all when left out). A 6-digit code arrives on WhatsApp; confirm it with POST /integrations/whatsapp/{id}/confirm within 10 minutes and the alerts start (a short message with a link; only service messages, never marketing). Sending the same number again sends a new code. Up to 5 codes a day. Free.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `phone` (required) | body | string | Your WhatsApp number in E.164 form, e.g. +14155550123 |
| `events` | body | array | Any of alert, creator, trend, run, analysis, search, digest, mirror, fusion, channel, brief, handoff, calendar (default all) |

```bash
curl -X POST "https://lulubanana.com/api/v3/integrations/whatsapp" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone":"+14155550123","events":["alert"]}'
```

Example reply:

```json
{
  "data": {
    "id": 43,
    "kind": "whatsapp",
    "label": "WhatsApp +-------0123",
    "url": "",
    "events": [
      "alert"
    ],
    "types": null,
    "active": false,
    "failures_in_a_row": 0,
    "source": "api",
    "pending": true,
    "disabled_reason": "waiting_for_code",
    "whatsapp": {
      "phone": "+-------0123",
      "confirmed": false
    },
    "last_status": null,
    "last_delivery_at": null,
    "created_at": "2026-11-24T09:30:00.000Z",
    "code_expires_at": "2026-11-24T09:40:00.000Z",
    "next": "Send the 6-digit code from WhatsApp to POST /integrations/whatsapp/43/confirm within 10 minutes."
  }
}
```

### POST /api/v3/integrations/whatsapp/{id}/confirm

Confirm a WhatsApp number with the 6-digit code it received; the alerts start at once. 5 wrong codes end the code (ask for a new one). Free.

Cost: free.

| Parameter | In | Type | Description |
| - | - | - | - |
| `id` (required) | path | string | The id in the path |
| `code` (required) | body | string | The 6-digit code from the WhatsApp message |

```bash
curl -X POST "https://lulubanana.com/api/v3/integrations/whatsapp/42/confirm" \
  -H "Authorization: Bearer $LULUBANANA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code":"482913"}'
```

Example reply:

```json
{
  "data": {
    "id": 43,
    "kind": "whatsapp",
    "label": "WhatsApp +-------0123",
    "url": "",
    "events": [
      "alert"
    ],
    "types": null,
    "active": true,
    "failures_in_a_row": 0,
    "source": "api",
    "pending": false,
    "disabled_reason": null,
    "whatsapp": {
      "phone": "+-------0123",
      "confirmed": true
    },
    "last_status": null,
    "last_delivery_at": null,
    "created_at": "2026-11-24T09:30:00.000Z",
    "confirmed": true
  }
}
```

## FAQ

**How do I get Lulubanana alerts in Microsoft Teams?**
Add the Workflows app's "Send webhook alerts to a channel" flow to the channel, copy its address and add it in Settings -> Integrations (or POST /integrations/teams). A test card arrives at once.

**How do I get alerts on Telegram?**
Create a link (Settings -> Integrations -> Telegram, or POST /integrations/telegram/link), open it and press Start. Send /stop in the chat to pause alerts and /start to switch them back on.

**How do I get alerts on WhatsApp?**
Add your number in E.164 form; a 6-digit code arrives on WhatsApp. Confirm it within 10 minutes and alerts start: a short message with the alert and its link.

**Are Telegram and WhatsApp available now?**
Microsoft Teams works now. Telegram and WhatsApp need a one-time setup by Lulubanana; until then the API answers 409 provider_not_configured with a plain message.

**Do messaging alerts cost credits?**
No. They are included (0 credits). Fair use: 10 integrations per account, 20 Telegram links and 5 WhatsApp codes a day.

**Can I still use Slack or Discord incoming webhooks?**
Yes. POST /webhooks with kind slack or discord and the channel's incoming-webhook address works next to the Slack app, Teams, Telegram and WhatsApp, with the same events and retries.

More: https://lulubanana.com/developers/ - all endpoints https://lulubanana.com/developers/endpoints/ - research guide https://lulubanana.com/ai-guide.txt
