Triggers
A trigger is a way a case starts. A workflow can have several: a form that anyone fills in, a file that arrives in a mailbox, a bill created in your accounting app, a date on each row of a table. Every trigger reads as a plain sentence, such as "Somebody submits Claim an expense" or "30 days before each row's End date".
The agent picks the triggers when it designs the workflow. Workflow admins see and manage them in the workflow's Settings › Triggers.
Ways a case can start
| Group | Trigger |
|---|---|
| People | A form is filled in · Somebody presses Start · A button on a row · Another workflow finishes a step · Somebody asks the agent |
| Qik data | A row is added · A row changes · A row starts matching a condition · An approval is decided · A meeting ends |
| Company people | Somebody joins, leaves or moves — joins the company, leaves it, changes department or gets a new reporting head |
| Time | On a schedule (every day, every Monday, the 1st of each month, every quarter…) · A date on each row, such as 30 days before a contract's end date |
| Files | A file arrives — dropped on the workflow, in a room folder, in a company mailbox, or in a Drive, OneDrive or Dropbox live folder |
| Signatures | A signature request is completed, optionally for one signature template |
| Live data | A number crosses a line, such as budget left dropping below 10% |
| Outside systems | Something happens in an app · Another system posts to a link (webhook) · Through the Qik API |
How to see a workflow's triggers
- Open the workflow and select Settings.
- Select Triggers.
Under This workflow starts when, every trigger is listed with its status:
- Live — it is starting cases. The row shows when the last event arrived.
- Paused — select Resume to start it again.
- Needs a look — it stopped working. Open it to see why, then select Fix.
- Draft · not listening — set up but not on yet. Select Switch on or Continue.
- Off by company — the app, or webhooks and custom APIs, are turned off in Company settings.
Triggers that listen for files, people, dates, numbers, signatures and webhooks start listening once the workflow is live.
How to add a trigger
- In Settings › Triggers, select Add a way to start.
- Under Add another way to start, choose Apps or Other ways.
- Pick the app or the way to start, and set it up.
To add a form, a button, a row or another workflow as a trigger, select Choose on A form, a button, a row, another workflow…. Under When does a case start?, pick every way it can start and select Save.
To remove a trigger, open its ⋯ menu and select Remove.
Files
With A file arrives, each file opens its own case (One case for each file), or a batch of files opens one case (One case for the batch). Files can come from:
- Dropped on the workflow — select Start with a file on the workflow's Cases tab, or drop files on it.
- A room folder — the room's Files, or a folder you name.
- A company mailbox — the workflow gets its own email address when it goes live.
- A Drive / OneDrive / Dropbox folder — pick one in Files › Live folders.
Apps
Something happens in an app starts or moves cases from your other tools: a new Zoho Books bill, a GitLab merge request, a HubSpot deal won. Connecting an app takes three steps:
- Sign in — sign in to the app once. If the workflow's room already has a connection to the app, choose it under Use an existing connection and skip this step.
- Pick events — tick the events you need. For each event choose what it does: starts a case, refreshes its case, finishes the wait on a waiting step, or ends its case. Under Only when, add filters such as
amount > 10000. - Fill in the case — choose which field of the event fills each field of the case. Select Fill these in for me and the agent maps them; its guesses show in amber until you select Looks right.
Select Test with a real event to try it with a practice case, then select Connect. Until you select Connect the trigger stays a draft.
One item, one case: later events about the same bill or merge request refresh its case, or finish a waiting step, instead of opening another case.
If an app's events aren't set up in Qik yet, select Set up with the agent. The agent reads the app's documentation and sets them up.
App events added by the agent
If an app has no event for what you need, select Not here? Ask the agent for another event under Pick events. The agent reads the app's documentation, checks the new event against your company's own sign-in, and adds it for your company. Added events are tagged Added for your company. An event that only arrives through a webhook shows Waiting for its first event until the first one comes in.
Company owners and admins control this in Company settings › Workflows › Workflow connectors with Agent can add app events (on by default). App event additions lists every added event, who added it and how often it has fired, with Remove. See Company workflows.
Webhooks and the Qik API
- Another system posts to a link — select Create the address to get the webhook's Address and Secret. Any system can post JSON to it and a case opens. Select Show example for a signed request you can copy.
- Through the Qik API — developers and scripts start a case with one call, using a token from Company settings › Developer apps. See Developer apps.
Webhooks and custom APIs can be turned off for the company in Company settings › Workflows › Workflow connectors.