Connecting a Personal Agent to Lark Research Notifications
When my personal Agent produces a briefing, I want a short message rather than another website to check. Start with a synthetic summary sent only to an explicitly bound test group.
Choose the integration
The official Lark bot overview distinguishes custom group bots and application bots. Start with the former for fixed one-way push. Direct messages, interaction and identity require separately authorized application bots and callbacks.
Create a controlled test-group bot following the custom bot guide. Keep the webhook secret and server-side, respecting configured keyword, IP or signature checks. The following unexecuted example assumes a test group without signature enforcement:
const response = await fetch(process.env.LARK_TEST_WEBHOOK, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
msg_type: 'text',
content: { text: 'Synthetic research briefing ready: sample-001' }
}),
signal: AbortSignal.timeout(10000)
})
const result = await response.json()
if (!response.ok || result.code !== 0) {
throw new Error('Lark did not confirm acceptance')
}Verify the current response contract during integration, including non-JSON responses, throttling and business errors. A timed-out message may already have been sent; do not automatically rerun research.
Notifications come from immutable reports
Construct messages from committed titles, summaries and protected links. Recipients are approved server-side subscriptions. Associate delivery records with report_revision, channel and target; deduplicate local triggers without claiming remote exactly-once execution.
| State | Check |
|---|---|
| Platform acceptance | Preserve the business receipt |
| Group visibility | Confirm in an authorized client |
| Link access | Verify application authorization with the recipient account |
| Revocation | Cancel undispatched records |
Do not send private holdings or full reports to shared groups by default. Test synthetic text first, then synthetic report links and failure recovery. The Open ETF Agent Lark adapter is Planned, not an existing feature to enable.