Skip to main content

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.

The button overwrites

(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:

FolderContainsDescribed on
examples/Artificial Intelligencelanguage model and sentiment detectionArtificial intelligence
examples/E-Mailinbox robots, approvals, double opt-inE-mail
examples/Conditional, examples/Scriptsclick answers and PythonPython and click answers
examples/Reportsfiltering and scoring listsReports
examples/Advanceddata sources across forks, spreadsheets, retries, modules, secretsAdvanced
examples/Datathe 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.

NeedWhat to do
Language modelA 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 sendingThe SMTP server in the system settings. Set the hostname there as well when a mail contains answer links: the links point to it.
MailboxThe IMAP account in the system settings. An example that moves mails needs the target folders (for example invoice) in that mailbox.
Telegram botCreate 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 pushThe page must be opened over https, and your keys must be generated in your account settings, see Send Push Notification.
PythonPython with JEP must be set up on the server, see Python and, for Windows, Python on Windows.
Full editionModules and node tags are part of the full edition.
Example dataThe 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​

ExampleLevelNeeds
Create PinBeginnerPython
Python LoopBeginnerPython
Tell a fortuneBeginnerLanguage model, example data
Search Engine Optimization of product descriptionsBeginnerLanguage model, example data
Sentiment DetectionBeginnerExample data
Filter Customers by CountryBeginnerExample data
Python RouterIntermediatePython
ConversationIntermediateLanguage model
Answer from a DocumentIntermediateLanguage model
Telegram ChatIntermediateLanguage model, Telegram bot
Escalate Angry CustomersIntermediateLanguage model, mailbox, mail sending
AI Auto AnswerIntermediateLanguage model, mailbox, mail sending
Filter and SortIntermediateMailbox
Support Inbox TriageIntermediateLanguage model, mailbox, mail sending
Approval by E-MailIntermediateMail sending
Double Opt-InIntermediateMail sending, example data
Welcome New CustomersIntermediateMail sending, example data
Click AnswerIntermediateMail sending, example data
Lead ScoringIntermediateLanguage model, example data
Escalation LadderAdvancedMail sending, Telegram bot, browser push
Shared Data Source Across a JoinAdvancedExample data
Follow a SpreadsheetAdvancedMail sending, example data
Retry and Error PathAdvancedLanguage model, mailbox, mail sending
Using a ModuleAdvancedFull edition, example data
Secrets and Node TagsAdvancedPython, Telegram bot, full edition

Work with an example​

  1. Open it from the file storage (examples/...), the diagram editor shows it.
  2. Read the notes on the canvas, then start a dry run and look at the log.
  3. Set up what it needs (the line Needs), replace the placeholders and run it for real.
  4. 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).