Skip to main content

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 keyTypePurpose
overviewfrontendPageFocused home screen and resource shortcuts
inspirationdataWorkspaceViewSocial posts saved by the user
stylesdataWorkspaceViewReusable voice and writing style records
writechatExisting AI chat scoped to writePost
draftsdocumentGenerated documents ready for editing
schedulecontentSchedulerReview 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​

  1. The user opens inspiration or style records in native Data Workspace views.
  2. The overview calls host.navigate('write') to open scoped chat.
  3. Chat launches the installed writePost workflow.
  4. The workflow generates a document in the drafts folder and logs the result.
  5. 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.