Multi-party threads, AI participants, compliance-grade audit trails. Build in days what used to take months.
npm install @commshub/sdkEverything you need to add AI-powered conversations to your app. TypeScript-first, compliance-ready, open source.
Patients, doctors, AI, and staff in one conversation. Each participant has roles, visibility rules, and notification preferences.
AI that understands multi-party context. Define agents with triggers, tools, and escalation rules. Let AI handle the routine, escalate the rest.
Internal notes staff can see but patients can't. AI escalations only visible to doctors. Visibility is a first-class primitive.
Every message, every AI decision, queryable forever. Export for HIPAA audits, FINRA compliance, or your own analytics.
CommsHub lives in your PostgreSQL. No vendor lock-in, no data leaving your infrastructure. Add foreign keys to your domain tables.
Deliver to SMS, email, Intercom, Slack. Bring your own API keys or use managed channels. Incoming webhooks route to threads automatically.
Configure AI participants with personality, triggers, and tools. Deploy changes without shipping code.
<span class="code-keyword">import</span> { <span class="code-function">defineAgent</span> } <span class="code-keyword">from</span> <span class="code-string">'@commshub/sdk'</span>;
<span class="code-keyword">export const</span> triageAgent = <span class="code-function">defineAgent</span>({
<span class="code-property">id</span>: <span class="code-string">'medical-triage'</span>,
<span class="code-property">name</span>: <span class="code-string">'AI Triage'</span>,
<span class="code-property">personality</span>: <span class="code-string">`
You are a compassionate medical triage assistant.
- Gather symptom information
- Ask clarifying questions
- NEVER diagnose or prescribe
- Escalate urgent cases
`</span>,
<span class="code-property">triggers</span>: [
{
<span class="code-property">type</span>: <span class="code-string">'keyword'</span>,
<span class="code-property">keywords</span>: [<span class="code-string">'chest pain'</span>, <span class="code-string">'breathing'</span>],
<span class="code-property">action</span>: <span class="code-string">'escalate'</span>,
<span class="code-property">escalateTo</span>: <span class="code-string">'prescriber'</span>,
},
],
<span class="code-property">tools</span>: [
<span class="code-string">'escalate_to_prescriber'</span>,
<span class="code-string">'lookup_patient_history'</span>,
],
});Healthcare, fintech, property management, and beyond. Industry templates get you started in minutes.
HIPAA-ready patient messaging. AI triage with escalation to providers. Full audit trails for compliance.
Investor communications with compliance logging. AI advisors that know when to escalate to humans.
Tenant, owner, vendor coordination. AI for maintenance requests with automatic dispatch.
Tired of walled gardens and scattered conversations? Build an AI-native internal platform your team will actually love.
Connect Slack, Teams, Telegram, and email into one unified hub. Migrate gradually without disrupting workflows.
AI assistants in every channel β answering questions, summarizing threads, routing requests. Not bolted-on, built-in.
No per-seat pricing. No vendor lock-in. Your data stays in your database. Scale to 10,000 users without scaling your bill.
TypeScript SDK means your team can customize everything. Build internal bots, workflows, and integrations.
SSO/SAML, role-based access, audit logs for compliance. Deploy on-prem or in your own cloud.
One codebase, works everywhere. Install on iOS and Android without app store gatekeeping.
Start free, upgrade when you need managed AI and channels.
Everything you need to build and ship
Scale with AI and external channels
For compliance-heavy organizations
βWe went from zero to production AI conversations in 8 days. The defineAgent API is exactly what I wanted β declarative but powerful.β
βFinally, a messaging SDK that treats AI as a first-class participant. The audit trail alone saved us 3 months of compliance work.β
βThe PostgresStore adapter means we own our data. No vendor lock-in, full SQL access. That's how it should be.β
Get started in 5 minutes. Free to build, pay only for managed AI.