Once SweetHawk is connected to Zendesk Action Builder, your action flows can use SweetHawk actions. For example, apply a task list when a ticket's form changes, start an approval when a field is set, or pause a timer while a ticket is on hold. This article lists every SweetHawk action, what it does and what to fill in.
Before you start
- You need the SweetHawk Suite subscription.
- Connect SweetHawk to Action Builder once. See Connect SweetHawk to Zendesk Action Builder.
- Set up what the action uses in the SweetHawk app first, such as the task list, approval definition, timer or Kanban board. Action Builder shows them in drop-downs.
How an action flow works
An action flow runs from top to bottom. It starts with a trigger: something that happens in Zendesk, such as a ticket being created or a ticket field changing. You can add conditions to the trigger so the flow only runs for the tickets you want. Then each step under the trigger runs in turn. A SweetHawk action is one of those steps.
Add a SweetHawk action to a flow
- In Zendesk, open Admin Center (the Zendesk admin settings, not the SweetHawk app) and go to Apps and integrations > Actions > Action flows.
- Click Create flow. If admin copilot opens, click Create manually instead. Give the flow a name and click Next. To change a flow you already have, click its name instead.
- Click + Add trigger and choose what starts the flow. For SweetHawk actions, choose a ticket trigger under Zendesk > Tickets, such as Ticket created or Custom ticket field changed. That's what tells the flow which ticket to work on.
- Add conditions to the trigger if you need them. For example, only run when a field has a certain value, or when a tag isn't already on the ticket. If the conditions aren't met, nothing else in the flow runs.
- Click + under the trigger (or under any step) and choose the SweetHawk action. You can search for it in the list.
- Fill in the action's fields, as described below.
- Click Save. New flows start off inactive, so click Test to try it, then activate it.
Fill in the fields
- Zendesk ticket ID: click the field and choose Ticket ID from the list. The list shows information from earlier steps, numbered by step. "1 Ticket ID" is the ticket from the trigger in step 1, which is the one you usually want.
- Drop-downs such as Task list, Timer or Approval definition list what's set up in that SweetHawk app.
- Text fields such as Task name: type the text, or click Add variable to insert information from an earlier step, such as the ticket's subject or a field's value. You can mix typed text and variables.
Use what an action gives back
Some actions give back information when they run, shown in the What you get back column below. You don't need to do anything to get it. It just becomes available to the steps after it: it appears in their field lists and under Add variable, labelled with the step's number. Actions that give back "Nothing" just do their job.
Example: delete a task only if it's on the ticket
- Step 1, trigger: a ticket trigger, such as Ticket tags changed.
- Step 2, Look up Task: Zendesk ticket ID = "1 Ticket ID", Task name = "Order laptop". This gives back found (whether the task is there) and task_id (its ID).
- Step 3, Branch: under Flow control and utility, add a Branch that checks "2 found" is true.
- Step 4, Delete Task (inside that branch): Zendesk ticket ID = "1 Ticket ID", Task ID = "2 task_id".
Another example: Start Approval Request gives back each approver's approval link, so a later step can post it to Microsoft Teams or Slack.
If a step fails
If an action can't do what you asked, for example the ticket doesn't exist or the task isn't on that ticket, the step fails. Open the flow's Runs tab to see the message saying why. Each step's Error handling setting decides what happens next: Stop flow (the default), carry on with the next step, or follow a separate error branch.
Tasks and Subtickets
| Action | What it does | What you fill in | What you get back |
| Apply Task List | Adds a saved task list to a ticket. | Zendesk ticket ID, Task list | Nothing |
| Apply Phased Task List | Adds a saved phased task list to a ticket. | Zendesk ticket ID, Phased task list | Nothing |
| Create Task | Adds a single task to a ticket that isn't part of a task list. | Zendesk ticket ID, Task name | task_id |
| Complete Task | Marks a task complete, by its name or by its ID. | Zendesk ticket ID, Task name or ID | Nothing |
| Complete Task from Task List | Marks a task from a saved task list complete. | Zendesk ticket ID, Task list, Task | Nothing |
| Complete Task-List Phase | Marks every unfinished task in one phase of a phased task list complete. | Zendesk ticket ID, Phased task list, Phase | Nothing |
| Look up Task | Finds tasks on a ticket by name. Matching ignores case. | Zendesk ticket ID, Task name | found, task_id, name, completed, match_count |
| Look up Task List | Reads a task list on a ticket. Leave the ticket empty to read the saved task list instead. | Task list, Zendesk ticket ID (optional) | applied, task_list_id, name, completed_count, pending_count, tasks |
| Look up Phased Task List | Reads a phased task list on a ticket. Leave the ticket empty to read the saved list instead. | Phased task list, Zendesk ticket ID (optional) | applied, phased_task_list_id, name, phases |
| Delete Task | Deletes one task from a ticket. | Zendesk ticket ID, Task ID | message |
| Delete Task List | Deletes a task list from a ticket, with every task in it. | Zendesk ticket ID, Task list ID | message |
| Delete Phased Task List | Deletes a phased task list from a ticket, with every phase and task in it. | Zendesk ticket ID, Phased task list ID | message |
Deleting tasks: the delete actions need the ID of what's on the ticket. Get it with a Look up action first, check found or applied with a branch, then delete. Use the same ticket ID in both steps. A look-up that finds nothing still succeeds, so the flow can branch on it.
See Automatically complete Tasks with Zendesk Action Builder and Automatically delete Tasks with Zendesk Action Builder.
Approve
| Action | What it does | What you fill in | What you get back |
| Start Approval Request | Starts an approval on a ticket from a saved approval definition. | Approval definition, Zendesk ticket ID | approval_request_id, approval_message, approvers (email, url, message for each) |
| Look up Approvers | Gets the approvers of the approval already running on a ticket, without starting a new one. | Approval definition, Zendesk ticket ID | approval_request_id, approval_message, approvers |
Each approver comes back with their approval link, so a later card can send it somewhere else. See Send Approve requests to Microsoft Teams.
Timers
| Action | What it does | What you fill in | What you get back |
| Start Timer | Starts a timer on a ticket. | Zendesk ticket ID, Timer, Identifier (optional) | timer_instance_id, started_at, notify_at, identifier |
| Pause Timer | Pauses a running timer. | Zendesk ticket ID, Timer | timer_instance_id, paused_at |
| Resume Timer | Resumes a paused timer. | Zendesk ticket ID, Timer | timer_instance_id, resumed_at |
| Stop Timer | Stops a running timer. | Zendesk ticket ID, Timer | timer_instance_id, stopped_at, total_elapsed_minutes |
With Identifier set, Start Timer replaces the timer already running on the ticket with that identifier, instead of starting a second one. See Start & swap Timers with Zendesk Action Builder.
Reminders NEW
| Action | What it does | What you fill in | What you get back |
| Create Reminder NEW | Creates a reminder on a ticket. | Zendesk ticket ID, Description, Remind at, Recipient, Recipient Zendesk user ID (for a specific agent), Reminder workflow (optional) | reminder_id |
- Remind at takes "now", a time from now such as "+30m", "+2h", "+3d" or "+1w", a date (YYYY-MM-DD) or a full date and time. A date uses your default reminder time. "+3d" and "+1w" move to a working day if you've set up a schedule. A time in the past fails the step.
- Recipient can be Ticket assignee, Specific agent (enter their Zendesk user ID) or Connection owner, which is the person who connected SweetHawk, not the agent who triggered the flow. If you choose Ticket assignee and the ticket isn't assigned, the step fails.
- Each run creates a new reminder.
Calendar
| Action | What it does | What you fill in | What you get back |
| Create Calendar Event | Creates a calendar event linked to a ticket. | Zendesk ticket ID, Calendar, Subject, Description (optional), Start (optional), Duration (optional) | Nothing |
Start takes "now", a time from now such as "+4h" or "+3d", or a date and time. Duration can be 30 minutes, 1 hour, 2 hours, 4 hours or all day.
Journeys
| Action | What it does | What you fill in | What you get back |
| Start Journey | Starts a journey on a ticket. | Zendesk ticket ID, Journey | Nothing |
| Complete Journey | Completes a journey on a ticket. | Zendesk ticket ID, Journey | Nothing |
Kanban
| Action | What it does | What you fill in | What you get back |
| Place Ticket on Kanban Board | Adds a ticket to a Kanban board, or moves it to another column. | Zendesk ticket ID, Board, Column | Nothing |
Notify and Broadcast
| Action | What it does | What you fill in | What you get back |
| Send Notification to All Users | Sends a Notify pop-up and notification feed message to all users, about a ticket. | Zendesk ticket ID, Message, Pop-up banner type (Notice, Alert or Error), Require agent to dismiss pop-up, Notification feed icon | ticket_id, kind |
| Send Broadcast Message to All Users | Sends a Broadcast message to all users. | Title, Body, Priority (Normal, High or Urgent) | Nothing |
Both go to everyone. You can't choose recipients from Action Builder yet.