How do I set up a workflow?
Updated Reading time: 10 min
On this page
- How to open the workflows
- Create a workflow
- Start with a template
- The trigger types
- The trigger "Leave requested"
- The actions
- Recipient "Myself"
- Create appointment
- Create task
- Have post approved first
- The Kai step
- Content from Kai is marked
- Estimated costs of an agent
- Create a workflow from the agent
- Test workflow
- Activate and pause workflow
- Modify a running workflow
- Options
- Module Automations
With workflows, you automate processes consisting of triggers, conditions, and actions: for example, a reminder every Monday or an approval as soon as someone submits a request.
Info
System admins set up workflows for the entire company. Whether employees can create their own workflows is determined by role: under Administration → Roles & Permissions with the permission Own Workflows at the Create or Administer level. Employees with this permission work in the same workflow editor and only see their own workflows there. There is no separate switch in the AI settings for this anymore.
How to open the workflows#
Open the Administration.
In the menu, select AI & Workflows → Workflows.
The list also includes workflows that the platform itself provides, such as Absence Approval. These are marked with the type System. Use All accessible to filter by Mine, Other People, or System. A green dot before the name indicates an active workflow.
Create a workflow#
Click on Create Workflow in the top right. On mobile, this is the round button with the plus sign.
Enter the name at the top, or start with a template under Start with a template, such as Weekly Reminder. Next to All, you can see the full selection with search; the filters Schedule, Event, and New Entry narrow it down. The template includes the name, trigger, and steps. You check the goals of the steps yourself afterward.
Click on the Trigger box and select the Trigger Type: Manual, By Schedule, or When something happens.
Click on the + in the line to insert a step: Action, Condition, Approval, Involve Works Council, or Kai Step. A Kai Step consumes company credits.
Click on a step to configure it. For an Action, for example, select Send Notification, the Target, a Title, and the Message. Insert Variable takes values from the process into the text.
Click on Save.
The workflow is saved in a paused state. It only runs once you activate it.
Start with a template#
Under Start with a template, in addition to the built-in templates, you will also find templates that Weslink maintains for all companies, such as Daily Shift Handover, Inspection Deadlines Due, or Content Weekly Plan. Three new ones have been added:
Check Vehicle Booking: When a vehicle is booked, Kai checks UVV, HU, and maintenance for the booking period. Only if something expires, the mileage reaches maintenance, or nothing is recorded does a task get created for the fleet. You select who receives it in the Create Task step.
Pre-check Leave Request: When someone requests leave or a flex day, Kai counts the absences in the person's groups during the requested period and compares them with the minimum staffing. You enter the minimum staffing per group in the Kai step instead of the placeholder in square brackets. Those who can approve the request receive a note. Kai does not evaluate or decide.
Weekly Review for Me Only: Every Friday at 2 PM, Kai summarizes what you have completed during the week and what is pending. You receive the review only as a chat message.
Warning
For Pre-check Leave Request, a works agreement (§ 87 (1) No. 6 BetrVG, and No. 5 if there is a fixed minimum staffing) is required before activation.
Via All, you open the full selection. The Recommended row is at the top.
Each card shows the steps of the template under How it works, for example, Kai, check, and task.
People, groups, and folders in the template are still open. You select them after adopting in the steps. Replace placeholders in square brackets like [Shift Group] in the text.
If the template belongs to an agent template, you select the agent itself in the Assign Agent step. If you create the workflow from an adopted agent, it is already assigned.
Some templates only create a task if Kai writes a signal word like DUE, URGENT, or CHECK. A condition with Contains the word checks this, respects case sensitivity, and only matches the whole word.
If there is no suitable template, describe to Kai via Kai builds it for you what the workflow should do.
The trigger types#
Manual: The process only starts when manually triggered.
By Schedule: The process starts at fixed times, even if no one is logged in. You set the frequency, time, and day of the week.
When something happens: The process starts as soon as something specific happens on the platform. Under Event, you select what this should be, for example, Room booked or Leave requested.
The trigger "Leave requested"#
With the event Leave requested, a workflow starts as soon as someone requests leave or a flex day and the request is waiting for approval. This allows you, for example, to inform the manager or coordinate a substitute.
Under Scope, you limit the trigger to Groups or People. Without a selection, it applies to every matching request that the creating person is allowed to see.
Other absences do not start the workflow, such as special leave, training, or absences that do not require approval.
For Send Notification and Send Email, under Responsible Person (automatic), the target Who can approve the request (leave request) is available. These are the same people who also receive the approval request for the application.
Kai only mentions open requests from colleagues if every step of the workflow stays with these people: conditions, waiting times, Kai steps without their own approvers, and notifications or emails to Who can approve the request. If a step goes to someone else, such as the manager, into a chat, or as a task, Kai omits open requests entirely, even as a number.
Kai only prepares a note, for example about overlaps in the team. Kai does not decide, approve, or reject. This remains with the people who approve the request.
Important
Sick leave never triggers this workflow. Additionally, a Kai step in workflows does not mention the type of absence. If team visibility is restricted, Kai only states the number of absentees per day instead of names.
Warning
In Germany, a workflow that evaluates leave requests is generally subject to co-determination (§ 87 (1) No. 6 BetrVG). Coordinate it with the works council before activation, for example in a works agreement.
The actions#
Warning
With Send Notification, the target Roles cannot currently be saved: it shows "A step is incomplete". Select Specific People instead.
The following actions are also available: Post in Feed, Send Email, Send Chat Message, Create Task, Create Appointment, Call API, Collect Bookings, Move File, Copy File, and Create Folder. With custom modules, Create Module Entry, Change Module Entry, and Start Module Approval are added.
Recipient "Myself"#
With Send Notification, Send Chat Message, and Send Email, under Target, select the entry Myself (Creator of the Workflow). With Create Task, you find it under Assignment. The result then only goes to the person who created the workflow, regardless of what triggers it.
Info
If the person is locked or deleted, the step fails and reports this in the history. The message never goes to anyone else.
Create appointment#
The action Create Appointment adds an appointment under Calendar in My Calendar or in a Group's Calendar. Under Start (Days from Execution), you specify when it takes place: 0 is the day the workflow runs, 1 is the day after. In addition, there are Time and Duration (Minutes) or All Day, a Location, a Room, and Invited People.
Warning
If the room is occupied at this time, the step does not create an appointment, and the run is considered failed. In the History tab, it will show when the room is occupied. Subsequent steps do not run.
Create task#
If you assign the task to a person, that person will be notified.
Have post approved first#
Post in Feed publishes the post immediately. If there is no Approval before it, Kai suggests in the Kai tab Have post approved before publishing. Kai then adds an approval step before it: a person checks the post; only after their approval does it appear in the feed.
Tip
In the Kai tab, Kai can help you build the workflow, for example via Add Condition, Insert Kai Step, or Change Target. Each change can be undone.
The Kai step#
A Kai Step lets Kai or an agent complete a task. Under Assign Agent, you select Kai itself or one of your agents. Each execution consumes company credits.
Kai itself: You write the Instruction. In the workflow, Kai only reads and writes drafts.
An Agent: You write the Task for this Run. The agent's profile and skills are included; here, you only specify what it should do this time. Under What ... brings, you can view the agent's role, skills, and permissions with Show. The tile then displays "Kai with ...: ..." with the agent's name.
What an agent does in the workflow without asking is determined by its permissions. The step shows this under What ... does in this workflow, for example, "Send mail: only after approval", "Create task: without asking", or "depending on the case, without asking or for approval".
Setting |
What it does |
|---|---|
Who approves? |
If the agent asks, the selected people receive an approval card. The first response decides. If no one is selected, the person under whom the workflow runs approves. The field then names them: "No one selected yet – then ... approves, under whom the workflow runs." |
Deadline (Hours, optional) |
After this, the request expires. |
All suggestions of a run come on one card. You check off each entry individually.
If the trigger comes from outside, such as a form via the public link, or if the agent has read an email or webpage, every step with consequences goes to approval.
A workflow only starts active agents. You first activate a draft in the agent.
Warning
If someone can no longer approve, for example because the account is locked or deleted or the person is now a guest, the field Who approves? warns: "[Name] can no longer approve – select another person." This applies to every selected person and, if no one is selected, to the person under whom the workflow runs. If their name is no longer known, it says there: "The person under whom the workflow runs can no longer approve – select another person." Then select another person; otherwise, the agent's suggestions remain without approval.
If an agent has no writing skills and thus no permissions of its own, the step instead shows the switch Propose writing steps for approval. If it is off, the agent only reads and writes drafts. If it is on, you must select at least one person under Who approves?. These people receive the suggestions as approval in the chat, and execution is done with the rights of the person who approves.
Content from Kai is marked#
What a Kai step generates is marked with Created by Kai. This also applies to actions that follow a Kai step in the same run and to suggestions that someone later approves.
Tasks, chat messages, appointments, and notifications display the marking in the view. Tasks from templates therefore no longer start with the text "Created by Kai:".
For notifications, "Created by Kai" also appears in the push notification on the phone and in the browser, as the first line before the text. If the text already starts with it, such as with notifications from templates, it only appears once.
Emails include a note at the end stating that Kai created them.
Estimated costs of an agent#
If the agent has already had billed runs in the last 30 days, the step shows under the task what a run is estimated to cost, for example "≈ 0.11 € (5.3 Credits) per run · ≈ 0.46 € (23 Credits) per month". The estimate comes from these runs; billing is done via the company credits.
Workflows scheduled by weekday show the run and the month. If the workflow runs from Monday to Friday, it says there "weekdays ≈ ... per month".
Event-driven workflows only show the run, as how often the event occurs is not known in advance.
Agents without runs do not yet have an estimate. The step then shows the status of the company credits.
Create a workflow from the agent#
You can start directly with the agent. The new workflow then already includes its trigger and a Kai step for this agent.
Open the Administration and select Agents under AI & Workflows.
Click on the agent and switch to the Who starts tab. If you have modified the agent, save it first.
Click on Create Workflow under Workflows and select when the workflow starts: At a time, On a room booking, When leave is requested, When a form is filled out, or On a new module entry.
The trigger window is already open. At a time starts with Weekly on Monday at 09:00 AM, On a room booking with the event Room booked, When leave is requested with the event Leave requested. For the form and module entry, you select which one is meant.
Click on the Kai step, enter the Task for this Run, give the workflow a name at the top, and click on Save.
This workflow is also saved in a paused state.
How to set up agents and their permissions is described in How do I create my own Kai agents?.
Test workflow#
Select the Test tab on the left.
Click on Start Simulation.
The workflow is run on a trial basis: conditions are evaluated, actions are only described, nothing is saved or sent. Click on a step to see details.
Kai steps only provide a placeholder and are marked as Kai skipped. If they are to run for real, first check the box for Actually execute Kai steps (consumes company credits).
Activate and pause workflow#
Click on Activate at the top.
Check the summary and confirm with Activate. This takes effect immediately.
Use Pause to stop an active workflow again.
Modify a running workflow#
The editor automatically saves changes as a draft. The active workflow continues to run in the published version until then.
Publish turns the draft into the next version.
Discard Draft undoes the changes.
In the History tab, under Executions, you find every run, filterable by Successful and Failed. Under Changes, the versions are listed. You can restore an older one with Restore.
Info
The platform deletes completed runs 90 days after their end, along with their logs and approvals. The workflow itself and its versions remain. Runs that are still running, waiting, or have an open approval remain. If a run belongs to a works council case, it is retained for the case. If the works council has had the personal data of the case removed, the platform clears the run after the same 90 days: the entry remains, but its contents, logs, and approvals are gone.
Options#
In the Options tab, you configure, among other things:
Workflow Type: Personal Workflows or System Workflows. A system workflow is intended for a process of the entire company: everyone who manages system workflows can see and edit it, and it can write to freely entered email addresses.
Group: This determines who sees the workflow. File actions can place files in this group's folder.
Description and Tags: a maximum of 10 tags with 30 characters each.
Runs per Hour: If the workflow starts more event-driven runs than this number, it pauses itself and notifies you. Manual starts and schedules do not count.
Duplicate Workflow: creates a paused copy that belongs to you.
Important
Runs as shows with whose permissions the workflow operates. It only sees and changes what this person can see and change themselves.
Module Automations#
The Module Automations tab shows the scheduled processes that individual modules include, with schedule, status, and last run. The overview is read-only: enabling, disabling, or Run Now can be found in the module itself under Module Workflows.