Super Writer
Super Writer demonstrates the intended Apps Layer architecture: one developer-authored overview and five native TWL Tool surfaces, all backed by installed resources.
User experience
| Surface key | Type | Purpose |
|---|---|---|
overview | frontendPage | Focused home screen and resource shortcuts |
inspiration | dataWorkspaceView | Social posts saved by the user |
styles | dataWorkspaceView | Reusable voice and writing style records |
write | chat | Existing AI chat scoped to writePost |
drafts | document | Generated documents ready for editing |
schedule | contentScheduler | Review and schedule draft documents |
Surface composition
ui: {
icon: 'sparkles',
color: '#6574f7',
defaultSurface: 'overview',
surfaces: [
{
key: 'overview',
label: 'Overview',
type: 'frontendPage',
page: ref('frontendPages', 'overview'),
},
{
key: 'inspiration',
label: 'Inspiration',
type: 'dataWorkspaceView',
table: ref('dataWorkspaceTables', 'inspiration'),
},
{
key: 'styles',
label: 'Styles',
type: 'dataWorkspaceView',
table: ref('dataWorkspaceTables', 'styles'),
},
{
key: 'write',
label: 'Write',
type: 'chat',
preset: {
workflow: ref('workflowDefinitions', 'writePost'),
space: ref('spaces', 'root'),
outputDocumentFolder: ref('documentFolders', 'drafts'),
allowedTools: ['workflow.launch'],
expectedOutput: 'document',
showModelSelector: false,
showBrowserControls: false,
},
},
{
key: 'drafts',
label: 'Drafts',
type: 'document',
documentFolder: ref('documentFolders', 'drafts'),
},
{
key: 'schedule',
label: 'Schedule',
type: 'contentScheduler',
documentFolder: ref('documentFolders', 'drafts'),
space: ref('spaces', 'root'),
},
],
}
Resource flow
- The user opens inspiration or style records in native Data Workspace views.
- The overview calls
host.navigate('write')to open scoped chat. - Chat launches the installed
writePostworkflow. - The workflow generates a document in the
draftsfolder and logs the result. - The document surface opens the editor; the scheduler reads from the same folder.
Friendly workflow controls
Super Writer exposes the emoji and temperature properties from the content.generate-written-content@1 Action in App Settings. The manifest only declares the workflow, step, and property bindings; the settings form reuses the Actions catalog metadata and renderer. Users can change those values without opening the workflow canvas, and the installation keeps the overrides through compatible app upgrades.
Permissions
Super Writer requests:
permissions: [
'data-workspace.read',
'data-workspace.write',
'documents.write',
'workflows.execute',
'ai-chat.use',
'content-scheduler.write',
]
The full certified source in the monorepo lives at packages/apps-layer/sdk/examples/twl-tool/twl-tool.app.ts with its executable suite beside it.