Beta. The Device SDK is live for design partners: Dopl issues your project's keys while the developer portal is being built, and @dopl/sdk is available on request. Agents that act for one signed in Dopl user can use the hosted MCP server instead.
Dopl's glasses default keeps replies to about five short plain lines. If your product has its own voice on glasses, a project profile replaces the default for every pair your users connect.
1. Write the profile
Match on kind: glasses for every pair, or add model for one model. prompt_append is the text your agent adds to its system prompt, and output holds the limits Dopl enforces. Here the profile also narrows the capabilities to presenting and asking, and confirms T3 actions on the device.
{
"id": "ar-glasses",
"match": {
"kind": "glasses"
},
"prompt_append": "The user is wearing AR glasses and is probably on the move. Answer in at most three short plain lines, lead with the answer, and offer choices as options instead of asking them to type.",
"output": {
"max_lines": 3,
"max_chars": 240,
"format": "plain",
"markdown": false
},
"allowed_capabilities": [
"present.*",
"ask.*"
],
"confirmation": {
"T3": "on_device",
"T4": "deny"
},
"overflow": {
"send_to": "phone"
}
}2. Choose what happens to long replies
overflow decides what happens when a reply is still too long. Here it goes to the user's phone in full, and is cut to an exact prefix if they have no phone connected. Use "truncate" to always cut it, or "callback" to get it back with the limits and have your agent write a shorter one. Dopl never rewrites it.
3. Have it applied
Profiles are configured by Dopl for each design partner today: send the profile to sales@usedopl.com and it is applied to your project's test or live environment. A self serve editor comes with the developer portal.
4. Use it in your agent
Read the user's context before each turn and append the matched profile's prompt_append to your system prompt. Agents on the project MCP server get the context back from every deliver call.
const context = await dopl.users.context("usr_123");
const system = [BASE_SYSTEM_PROMPT, context.profile?.prompt_append].filter(Boolean).join("\n\n");5. Compare versions
Each change creates a new profile version, and every event records the profile and version that applied, so you can measure the change.