162 lines
7.5 KiB
Markdown
162 lines
7.5 KiB
Markdown
# [claude-sonnet-4-6] Session Notes — 2026-05-08 (afternoon)
|
|
**Agent:** claude-sonnet-4-6
|
|
**Topics:** TikTok + Snapchat + Facebook integrations, customer scenarios (publisher + mortgage broker), marketing teaser, anime image prompt, cross-platform posting
|
|
|
|
---
|
|
|
|
## Integrations added this session
|
|
|
|
### TikTok (`src/clients/tiktok.ts`)
|
|
Four tools wired end-to-end:
|
|
- `tiktok_get_profile` — follower count, likes, video count via `/user/info/`
|
|
- `tiktok_get_videos` — recent videos with view/like/comment/share counts
|
|
- `tiktok_create_video` — PULL_FROM_URL upload via Content Posting API v2, returns `publish_id`
|
|
- `tiktok_get_video_status` — poll processing status by `publish_id`
|
|
|
|
Base URL: `https://open.tiktokapis.com/v2`
|
|
Credentials: `TIKTOK_{ACCOUNT}_ACCESS_TOKEN` env var or per-customer Redis.
|
|
|
|
### Snapchat (`src/clients/snapchat.ts`)
|
|
Three tools:
|
|
- `snapchat_get_me` — Login Kit, display name and bitmoji avatar
|
|
- `snapchat_create_snap` — throws with a clear explanation: Creative Kit is mobile-only, no server-side posting API exists
|
|
- `snapchat_get_ad_accounts` — Snapchat Marketing API, ad account list
|
|
|
|
Credentials: `SNAPCHAT_{ACCOUNT}_ACCESS_TOKEN`
|
|
|
|
### Facebook (`src/clients/facebook.ts`)
|
|
Four tools — the gap that was blocking cross-platform posting:
|
|
- `facebook_get_page` — Page name, category, fan count, follower count
|
|
- `facebook_get_posts` — recent Page feed
|
|
- `facebook_create_post` — text post with optional link
|
|
- `facebook_create_photo_post` — image post via public URL + caption (single-step, no container like Instagram)
|
|
|
|
Base URL: `https://graph.facebook.com/v19.0`
|
|
Credentials: `FACEBOOK_{ACCOUNT}_ACCESS_TOKEN` + `FACEBOOK_{ACCOUNT}_PAGE_ID`
|
|
Multi-tenant: credentials stored as `{ accessToken, pageId }` under `creds:{customerId}:facebook`
|
|
Connect via: `POST /api/connect/facebook` with `{ accessToken, pageId }` body
|
|
|
|
**Commits:** `6c7e567` (TikTok + Snapchat), `ffb6756` (Facebook)
|
|
|
|
---
|
|
|
|
## Platform coverage as of today
|
|
|
|
| Platform | Read | Write | Notes |
|
|
|---|---|---|---|
|
|
| Email | Yes | Yes | IMAP + SMTP, 7 accounts |
|
|
| WhatsApp | Yes | Yes | Meta Cloud API, full multi-tenant |
|
|
| LinkedIn | Yes | Yes | Post only; messaging/connections need Partnership tier |
|
|
| Telegram | Yes | Yes | Bot API |
|
|
| Discord | Yes | Yes | Bot API |
|
|
| Instagram | Yes | Yes | Business/Creator accounts, Meta Graph API |
|
|
| Twitter/X | Yes | Blocked | Free tier read-only; write needs paid upgrade |
|
|
| TikTok | Yes | Yes | Content Posting API v2 |
|
|
| Snapchat | Yes | No | Creative Kit is mobile-only — server posting impossible |
|
|
| Facebook | Yes | Yes | Graph API v19.0, Page access token |
|
|
| Obsidian | Yes | Yes | Local vault via filesystem |
|
|
|
|
---
|
|
|
|
## Customer scenarios — two Lodge Brothers
|
|
|
|
> **Important:** Both prospects are Lodge Brothers. Do not initiate pricing or pilot cost conversations with either of them. Lead entirely with the tool and the value. Let them bring up money if and when they're ready.
|
|
|
|
### Prospect 1 — Publisher / Advertising
|
|
|
|
Pain: Multi-channel advertiser relationship management — WhatsApp, email, LinkedIn all siloed.
|
|
|
|
**Demo script:**
|
|
> "Send a WhatsApp to my last three advertisers asking if they're ready for Q3 campaign plans, then check my email for any replies from them this week."
|
|
|
|
**Tools that serve them:**
|
|
- `whatsapp_send_message` — client follow-up at scale
|
|
- `search_messages` / `send_email` — email pipeline
|
|
- `linkedin_create_post` — industry updates, advertiser outreach content
|
|
- `instagram_create_post` + `facebook_create_photo_post` + `tiktok_create_video` — campaign content distribution
|
|
- `whatsapp_send_template` — approved templates for outreach outside 24hr window
|
|
|
|
**Inbound webhook:** Their WhatsApp number routes via `wa_phone_id` to their isolated credential namespace — no overlap with the mortgage broker.
|
|
|
|
---
|
|
|
|
### Prospect 2 — Mortgage Broker
|
|
|
|
Pain: Rate change notifications, client follow-up timing, WhatsApp + email context switching at high volume.
|
|
|
|
**Demo script:**
|
|
> "Send a WhatsApp to my last three active clients asking if they're ready to proceed, then draft follow-up emails to anyone who hasn't replied in 5 days."
|
|
|
|
**Tools that serve them:**
|
|
- `whatsapp_send_message` — rate change broadcasts, client status follow-up
|
|
- `whatsapp_send_template` — pre-approval status updates (avoids 24hr window restriction)
|
|
- `search_messages` + `create_draft` — document checklist follow-up pipeline
|
|
- `linkedin_create_post` — market commentary to build referral network
|
|
- `telegram_send_message` — broker network group communication
|
|
|
|
**Isolation guarantee:** Their Redis keys (`creds:cust_002:*`, `wa_phone_id:222`, `logs:cust_002:*`) are completely separate from the publisher.
|
|
|
|
---
|
|
|
|
## Marketing content — launch teaser
|
|
|
|
### LinkedIn post (Variant A — general feed, post Monday 8-9am ET)
|
|
|
|
```
|
|
Something I've been building quietly is almost ready.
|
|
|
|
Next week I'm going to show you what happens when your AI stops being a chatbot and starts being the person who actually handles your communications.
|
|
|
|
Not drafts. Not suggestions. Handles them.
|
|
|
|
WhatsApp. Email. LinkedIn. All in one conversation.
|
|
|
|
If you've ever ended a workday with 47 browser tabs open and the nagging feeling that half your messages didn't get answered — this is for you.
|
|
|
|
More next week. 👀
|
|
```
|
|
|
|
### Anime image generation prompt (goes with the teaser)
|
|
|
|
> A lone figure — androgynous, calm expression, dark asymmetric coat — seated at the center of a vast dark room, multiple glowing message streams flowing inward from all directions like ribbons of light. WhatsApp green, LinkedIn blue, email white — each stream a different color, all converging into their open hands. The figure is perfectly still while everything moves around them. Behind them, a floor-to-ceiling window overlooking a rain-soaked city at night, neon reflections on wet streets below. The chaos is outside. Inside — stillness and control.
|
|
>
|
|
> **Style:** cinematic anime, Studio Trigger lighting, cel-shaded with volumetric glow on the message streams, dark palette broken only by the colored data ribbons, shallow depth of field, 16:9 widescreen
|
|
>
|
|
> **Mood:** "everything is handled" — power without effort, calm in the center of the storm
|
|
>
|
|
> **Negative prompt:** robots, keyboards, computer screens, busy UI, text overlays, crowds
|
|
|
|
### Cross-platform posting prompt (paste into Claude with hermes-mcp connected)
|
|
|
|
```
|
|
Post the following to LinkedIn, Instagram, Facebook, and TikTok. Image URL: [PASTE URL].
|
|
|
|
Caption:
|
|
Something I've been building quietly is almost ready.
|
|
|
|
Next week I'm going to show you what happens when your AI stops being a chatbot and starts being the person who actually handles your communications.
|
|
|
|
Not drafts. Not suggestions. Handles them.
|
|
|
|
WhatsApp. Email. LinkedIn. All in one conversation.
|
|
|
|
If you've ever ended a workday with 47 browser tabs open and the nagging feeling that half your messages didn't get answered — this is for you.
|
|
|
|
More next week. 👀
|
|
|
|
Use facebook_create_photo_post for Facebook, instagram_create_post for Instagram, linkedin_create_post for LinkedIn. For TikTok, skip if this is a static image — TikTok requires video.
|
|
```
|
|
|
|
---
|
|
|
|
## Connecting Facebook (setup steps)
|
|
|
|
1. Go to [developers.facebook.com](https://developers.facebook.com) → your app → Graph API Explorer
|
|
2. Generate a Page access token with `pages_manage_posts` + `pages_read_engagement` permissions
|
|
3. Get your Page ID from the Page's About section or Graph API
|
|
4. Connect: `POST https://hermes.squaremcp.com/api/connect/facebook` with header `x-api-key: {your key}` and body `{ "accessToken": "...", "pageId": "..." }`
|
|
|
|
---
|
|
|
|
*claude-sonnet-4-6 | 2026-05-08 | product-incubation*
|