Lesson 2 / 5
Preparing a workshop
Switching Cocoder on, choosing the form and setting the limits.
Do this before the participants arrive. First choose the right workshop at the top under Workshop.
1. Switch Cocoder on
Cocoder has to be enabled in the workshop. You do that in the workshop's set-up: on Cocoder's Settings page, choose Workshop set-up. There you tick Enabled for Cocoder and choose the Provider: the AI model Cocoder generates with. Groups cannot choose a provider themselves.
On the Overview, Generating shows whether it works:
| What it says | Meaning |
|---|---|
| The provider and the model | Groups let the app make their page |
| the app is switched off for this workshop | Cocoder is not enabled |
| no provider: participants copy the prompt and paste the page | There is no provider; groups use an AI chat of their own |
| generating in the app is off: participants copy the prompt and paste the page | Generate in the app is off, even if there is a provider; groups use an AI chat of their own |
| paused | Generating is paused |
2. Choose the form
The form the groups fill in comes from a form template. Cocoder comes with the template AI in the City. On the Form templates page, choose which template the workshop uses, or write one yourself (see New template).
3. Set the limits
On the Settings page you decide how often a group may generate, how many generations run at the same time, how large a page may be and which model generates. If you leave a field empty, the server's default applies. If you switch Generate in the app off, the groups copy the prompt into an AI chat of their own and paste the page back, even if there is a provider.
4. Get the groups ready
Groups come about in two ways:
- You create them in advance on the dashboard's groups page, with a QR card per group. On an empty Cocoder groups page, Create groups takes you there.
- You open the app logged in (Open the app on the Overview) and choose Create group. You let the table scan that group's QR code.
Participants without an account cannot start a group themselves. They join through the QR code or the group code.
Overview
At the top are the workshop's key figures: Groups, Generations (with the number that failed, if any), Tokens (in and out), Published pages and Favourites. Click a tile to open the page behind it; the tokens have no page of their own.
The Set-up block shows how Cocoder stands now:
- Generating: the provider and the model, or why the app does not generate: the app is switched off for this workshop, no provider or generating in the app is off (in both cases participants copy the prompt and paste the page), or paused.
- Form template: the active template, or bundled with the templates Cocoder comes with.
- Intro video NL and Intro video EN: set, or steps only if there is no video. Participants then only see the five steps of the explanation.
- Per group per day, At the same time and Largest page: the limits that apply now.
Latest generations lists the newest generations with the time, the group, the Kind (Initial or Revision) and the State: done, or the error code of a failed generation in words, such as cut off. Choose Open the app to open this workshop's app, logged in as the workshop leader.
Settings
These settings apply to the workshop shown at the top. Choose Save to keep them.
- Form template: the form participants fill in. With Bundled templates they get the templates Cocoder comes with.
- Intro video (Dutch) and Intro video (English): the URL of the video the Explanation button opens. Without a URL the explanation and the start screen only show the five steps.
- Generate in the app: on by default. Off: participants copy the prompt into their own AI and paste the page back, even with a provider (see Without AI in the app).
- Generation paused: stops generating for a while. Participants keep their pages; the generate button tells them to wait.
- Generations per group per day: a group that reaches this number waits until 24 hours have passed. 0 means no limit.
- Generations at the same time: anything above this number waits in a queue. 0 means no limit.
- Largest page (bytes): how large a group's page may be, also when it is published. 2000000 is about 2 MB.
- Model: the model that generates. Empty: the provider's own model.
An empty field takes the server's default, which is shown in grey in the field. Above the limits it says which provider and which model are in use now. You choose the provider itself with Workshop set-up. The limits, the model and the pause switch are there too; they are the same settings. If Generate in the app is off, it says Now: generating in the app is off, so participants copy the prompt and paste the page.
Form templates
A form template sets the questions of the form and the prompt Cocoder sends to the AI with them. Above the table it says which template the workshop works with.
For each template the table shows the name, the Id, the Source (bundled or uploaded), the Validation (valid, or the number of problems), the number of Questions and the Last change. The template the workshop uses has the label active.
- Make active: lets the workshop work with this template. That is only possible with a valid template.
- Back to the bundled templates: shown under the table as soon as a template is active.
- New template: upload or write a template of your own.
If a chosen template is deleted or becomes invalid, the page says so and the workshop works with the bundled templates again.
Preferably choose the template before the groups start, so everyone works with the same form.
Viewing a template
Click a template's name to open it. At the top it says whether the template is bundled, read-only or uploaded, and whether it is active in the workshop.
A green message means that the validator has no remarks. A red message lists the problems; you cannot make such a template active.
The Questions table shows for each question the key, the label as participants read it, the type of field, whether it is Required and the number of choices under Options. Below it is the template's full YAML.
- Make active: lets the workshop work with this template.
- Duplicate: starts a new template with a copy of this one. That way you adapt a bundled template without changing the original.
- Edit and Delete: only for an uploaded template. After deleting, a workshop that worked with it goes back to the bundled templates; pages made with it stay.
New template
A template is one YAML document with an id, a title, the questions
and the prompt. You can supply it in two ways:
- YAML file: choose a
.yamlfile. It replaces the text in the field below. - YAML: write or paste the template into the text field. Through Duplicate a copy of an existing template is already here, as in the picture.
Choose Validate and save. Cocoder checks the template first and saves nothing as long as the validator has remarks; the remarks are then shown at the top in a red message. Cancel takes you back without saving.
Each question has a key, a label and a kind of field: a line of text, a larger text field, a drop-down list, radio buttons or tick boxes. The texts can be in Dutch and English; participants see the language they chose. A required question gets an asterisk, and the group can only generate once it is filled in.
When you edit an uploaded template, its id stays the same.