Embedded SDK
Ship rich AI experiences faster. Use our web and server SDKs to integrate agents, workflows, and AvatarMe in a few lines of code—complete with auth, analytics, and theming.
JavaScriptReactNode/Edge
iOSAndroidPython
Frontend quickstart
// React: embed an agent chat widget
import { SwfteChat } from '@swfte/embedded';
export default function SupportChat() {
return (
<SwfteChat
agent="ag_support"
theme="dark"
token={process.env.NEXT_PUBLIC_SWFTE_TOKEN}
/>
);
}
Server quickstart
// Node: trigger a workflow from your backend
import { Swfte } from '@swfte/sdk';
const swfte = new Swfte({ apiKey: process.env.SWFTE_API_KEY });
await swfte.workflows.run('rwk_invoice-extract', {
input: { fileUrl: 'https://example.com/invoice-1043.pdf' },
});
Customization
- Themes, locales, and accessibility baked in
- Event hooks: message, action, error, analytics
- Policy guardrails: PII filtering, rate limits, model routing
Embed example
Support widget
Conversation history
Quick actions • File upload
Rich replies • Citations
Ratings • Feedback