Creating a Project Template
Create a project template using YAML as follows:slug
, orgSlug
, version
, name
, and type
.
Adding Components
Incorporate components into your project template by appending sections to the YAML file:ref
property.
Project Options
Project support setting options, these will be available from the UI for the user to set as options.Working with Assistants
Project templates also involve setting up assistants.Assistant Connections
Define connections for an assistant using theconnections
property, which specifies the events to respond to and their associated resources.
Here’s an example of a store subscription in the updated 6.3 format:
STORE
- Triggers the assistant when a document is added to the connected store.DOCUMENT_FAMILY
- Triggers when a document family is updated.DATA_OBJECT
- Triggers when the connected data object is updated.CHANNEL
- Triggers when a message is received on the connected channel.WORKSPACE
- Triggers when the workspace is updated with the save method.
CHANNEL
or WORKSPACE
connections, providing the ref
is not necessary as the assistant connects based on its project association.
Workspaces
You can also define workspaces. The options can be set usingavailablePanels
, which controls the panels on the left. To display a panel, you must explicitly set it to true
.
id
under availablePanels
. Here are the options:
Show Developer Tools
active, a Workspace Configuration
panel will be available for use. Here, you can select the panels you wish to have available in a workspace.