Workspaces and brand
Give each customer a workspace and describe their brand.
Create a workspace
await bevyl.createWorkspace({ name: 'Tasty Burgers' });Use your own customer ID as the workspaceId, up to 255 characters. Calling createWorkspace again returns the existing workspace with created: false. A 409 means the ID belongs to another partner or to a revoked workspace.
Describe the brand
Bevyl uses the brand to write scripts and on-screen text.
await bevyl.updateBrand({
name: 'Tasty Burgers',
summary: 'A neighborhood burger restaurant in Austin.',
voiceTone: 'Warm and a little cheeky.',
targetAudience: 'Young families and late-night diners.',
products: 'Smash burgers, truffle fries, milkshakes.',
contentDos: 'Show food close up. Mention the late hours.',
contentDonts: 'No discount talk.',
hashtags: '#austineats #burgers',
});updateBrand changes only the fields you send. Send null to clear any field except name. Each field except name holds up to 5,000 characters.
getBrand() returns the current brand, or 404 before the workspace has one.