Example diagrams
Cocosplate AI comes with 26 ready-made diagrams, from a four-digit PIN generator to an escalation ladder across e-mail, Telegram and browser push. They are the quickest way to see how a process is built, and each one is a starting point for your own.
This section describes every example: what it does, what you must set up before it runs and the prompt you can give the agent to build the same diagram yourself.
Create the examples​
The examples are created automatically the first time you open the application. To create them again, open the
start screen of the application: the button (Re-)load examples (German: Beispiele (neu)laden) in
the bar at the top of the page creates the folder examples in your file storage.
(Re-)load examples writes the original diagrams again, also over a diagram you have changed. Copy a diagram to another folder (or save it under a new name) before you adapt it.
The diagrams are sorted into folders:
| Folder | Contains | Described on |
|---|---|---|
examples/Artificial Intelligence | language model and sentiment detection | Artificial intelligence |
examples/E-Mail | inbox robots, approvals, double opt-in | |
examples/Conditional, examples/Scripts | click answers and Python | Python and click answers |
examples/Reports | filtering and scoring lists | Reports |
examples/Advanced | data sources across forks, spreadsheets, retries, modules, secrets | Advanced |
examples/Data | the data the examples read: products, fictional addresses, a word list, an order workbook |
The levels​
Every example has a level, the same three levels that the example projects of the agent sidebar use:
- Beginner A few nodes in a row or one simple loop. Start here: open it, press the dry run, read the log.
- Intermediate Branches, waiting for an answer, several services together (an inbox, a language model and a mail account).
- Advanced Behaviour you only need once diagrams get serious: parallel paths that share a file, following a growing spreadsheet, retries and error paths, modules, secrets, and escalation across several channels.
What an example may need​
Under every example a line Needs names what has to be configured first. Without it the diagram is valid but the step that needs it fails when it runs.
| Need | What to do |
|---|---|
| Language model | A language model endpoint in the system settings, or your default model in the user settings. See Which model for the agent? for local models. Without one the AI step stops with "No LLM endpoint is selected". |
| Mail sending | The SMTP server in the system settings. Set the hostname there as well when a mail contains answer links: the links point to it. |
| Mailbox | The IMAP account in the system settings. An example that moves mails needs the target folders (for example invoice) in that mailbox. |
| Telegram bot | Create a bot with @BotFather and enter its token in the system settings (Telegram API), see Secrets. The name of the bot is entered in the event node. |
| Browser push | The page must be opened over https, and your keys must be generated in your account settings, see Send Push Notification. |
| Python | Python with JEP must be set up on the server, see Python and, for Windows, Python on Windows. |
| Full edition | Modules and node tags are part of the full edition. |
| Example data | The files in examples/Data that are created together with the examples. Do not move them. |
All addresses in the examples (manager@example.com, sales@example.com, a chat id) are placeholders. Replace them
before you start a diagram for real, and run it as a dry run first: a dry run sends nothing and the log tells what
would have been sent.
All examples at a glance​
| Example | Level | Needs |
|---|---|---|
| Create Pin | Beginner | Python |
| Python Loop | Beginner | Python |
| Tell a fortune | Beginner | Language model, example data |
| Search Engine Optimization of product descriptions | Beginner | Language model, example data |
| Sentiment Detection | Beginner | Example data |
| Filter Customers by Country | Beginner | Example data |
| Python Router | Intermediate | Python |
| Conversation | Intermediate | Language model |
| Answer from a Document | Intermediate | Language model |
| Telegram Chat | Intermediate | Language model, Telegram bot |
| Escalate Angry Customers | Intermediate | Language model, mailbox, mail sending |
| AI Auto Answer | Intermediate | Language model, mailbox, mail sending |
| Filter and Sort | Intermediate | Mailbox |
| Support Inbox Triage | Intermediate | Language model, mailbox, mail sending |
| Approval by E-Mail | Intermediate | Mail sending |
| Double Opt-In | Intermediate | Mail sending, example data |
| Welcome New Customers | Intermediate | Mail sending, example data |
| Click Answer | Intermediate | Mail sending, example data |
| Lead Scoring | Intermediate | Language model, example data |
| Escalation Ladder | Advanced | Mail sending, Telegram bot, browser push |
| Shared Data Source Across a Join | Advanced | Example data |
| Follow a Spreadsheet | Advanced | Mail sending, example data |
| Retry and Error Path | Advanced | Language model, mailbox, mail sending |
| Using a Module | Advanced | Full edition, example data |
| Secrets and Node Tags | Advanced | Python, Telegram bot, full edition |
Work with an example​
- Open it from the file storage (
examples/...), the diagram editor shows it. - Read the notes on the canvas, then start a dry run and look at the log.
- Set up what it needs (the line Needs), replace the placeholders and run it for real.
- Ask the agent to explain it or change it, for example: Explain what the open diagram does, step by step, and what I have to configure before I run it.
The prompt that builds an example​
Every example has a paragraph Prompt with a request for the agent. Paste it into an empty diagram. The agent draws a diagram that does the same, with its own layout and names: it is not a byte-for-byte copy of the example. Adapt names, folders and addresses to your installation; a more precise request gives a more precise diagram. More than a hundred further requests, sorted by the same three levels, are in the example list of the agent (light bulb button).