Dopl Device SDK
Reach your users on any device they own
One API for your agent to show cards, ask questions and send notifications to glasses, phones, computers and more. Start with a simulated device and a test key.
import { Dopl } from "@dopl/sdk";
const dopl = new Dopl({
apiKey: process.env.DOPL_SECRET_KEY!,
});
await dopl.notify("usr_123", {
text: "Your build finished",
});
const answer = await dopl.ask("usr_123", {
question: "Ship it?",
options: ["Yes", "No"],
});Start here
Devices
All categoriesDisplay glassesHeads up display glasses: cards, questions and notifications on the lensSoonAudio and camera glassesGlasses without a display: speech, spoken questions, voice and the cameraSoonSmart homeSpeakers, smart displays and home devices: speech, cards, state and reversible actionsSoonPhonesNotifications, screens and questions on your user's phoneSoonComputersThe Dopl desktop app on your user's MacSoonVehiclesTelemetry, navigation and commands for connected carsSoonRobotsTelemetry and motion for robots that work alongside your users
Core concepts
OverviewProjects, environments and keysHow your organization, projects, test and live data, and API keys fit togetherEnd users and connectionsYour users stay yours, and each device they link becomes a connectionHandle answersAsk the user a question and act on the answerContext profiles and routingHow Dopl picks a device, tells your agent how to write for it and holds the output to its limitsDisplaysOne block vocabulary for every screen, from a glasses lens to a desktopPermissions and safetyGrants from the consent screen, risk tiers and confirmation that the model cannot skipEvents and analyticsOne event for every call, recorded from the first requestTest modeBuild and run CI against simulated devices