Skip to content
Docs

Workflows

Create ticket

Turn the chat into a ticket your team answers by email, and optionally email the person.

Create ticket opens a ticket – a conversation your team answers by email – such as a complaint, a refund request or a question nobody can answer right now. It can assign the ticket, tag it, fill in its custom fields and email the person.

For an example, see Set up your first workflow, where an Ask survey collects the details first.

Settings

The Create ticket panel, starting with Auto-apply tags, Auto-apply tag groups, Live agent, Teams and CC email recipients, each with a Fixed or Variable switch

SettingWhat it does
Auto-apply tagsOptional. Tags to add to the ticket.
Auto-apply tag groupsOptional. Tag groups to add to the ticket.
Live agentOptional. The live agent to assign the ticket to. Only live agents who can manage tickets are listed.
TeamsOptional. One or more teams to assign the ticket to. Tick Inherit tags to also add each team’s own tags.
CC email recipientsOptional. Up to 10 email addresses to copy on the email to the person.
Email senderOptional. The address the emails come from. Without one, Proto’s own address is used. Select Manage to set up your own domain.
SubjectRequired. The ticket’s subject, and the subject of its emails.
DescriptionOptional. What the ticket is about, such as {description}.
Full nameRequired. The person’s name, such as {full_name}.
EmailRequired. Where to email the person, such as {email_address}.
Phone numberOptional.
Email templateOptional. Two templates: the first is emailed to the person, the second to the assignees. Select Manage to write templates.
Custom fieldsOptional. Ticket custom fields to fill in. Mandatory fields are added for you, marked *, and can’t be removed – see Mandatory custom fields.
Attachment(s)Optional. A variable that holds files to attach to the email to the person, such as receipt from an Ask survey question set to Attachment(s).

Subject, Description, Full name, Email and Phone number can include variables, such as {full_name}. The settings are the same in every language.

Fixed or variable

Some settings have a Fixed / Variable switch: the tags, tag groups, Live agent, Teams, CC email recipients, both email templates and each custom field.

  • Fixed – choose the value in the panel. It’s the same for every ticket.
  • Variable – enter a variable, or an expression, that gives the value when the workflow runs. Use it when the value depends on the chat – for example, a team ID from Auto team match, such as team.id.
SettingThe variable must hold
Tags, tag groups, TeamsAn ID, or a list of IDs
Live agentA user ID
CC email recipientsAn email address, or a list of them
Email templatesA template ID
A custom fieldA value that fits the field, such as one of its options

A value that doesn’t fit – such as a team that isn’t in your teamspace, or an address that isn’t valid – is left out, and the ticket is still created.

What happens

  1. Proto checks the mandatory custom fields. If one has no valid value, it creates nothing, and the Error branch runs.
  2. Proto creates the ticket, linked to this chat, and it appears in the Inbox.
  3. It adds your tags, and copies this chat’s custom fields to the ticket before filling in yours.
  4. It assigns the ticket to the Teams, then to the Live agent. With a live agent, the ticket is Open – otherwise it’s Pending.
  5. With an assignee template, it emails the live agent and everyone in the teams.
  6. With an Email template for the person, it emails them, copying in the CC email recipients and attaching the Attachment(s). Their reply goes to the ticket.
  7. The Success branch runs.

The ticket’s emails have its number in the subject, such as [Ticket #A1B2C3] Refund for order 1042.

Branches

BranchRuns when
SuccessThe ticket was created.
ErrorA mandatory custom field has no valid value, so no ticket was created.

With an empty branch, the workflow carries on with the action after Create ticket.

Tip: under Success, tell the person their ticket is on its way, such as We’ve logged your request as ticket {_new_ticket.short_id}. Under Error, offer a Live agent handoff.

Use the result

Later actions can read the ticket in _new_ticket:

PartWhat it holds
idThe ticket’s ID
short_idThe ticket’s number, as in the email subject
subject, descriptionThe subject and description
customer_idThe person the ticket is for
custom_fieldsThe ticket’s custom fields, by name
assignee_user_idThe assigned live agent’s user ID, or empty
assigned_team_idsThe assigned teams’ IDs

Mandatory custom fields

Your teamspace can make some ticket custom fields mandatory, in Settings, under Teamspace, then Tickets, then Mandatory custom fields. A ticket then can’t be created – by a live agent, the External API or an AI agent – until each of those fields has a valid value.

In Create ticket, mandatory fields are added to Custom fields for you. Give each one a value, or a variable that will hold one. A value already on the chat counts too, because it’s copied to the ticket.

Important: turning on mandatory custom fields can stop workflows that already create tickets. Check each Create ticket action has a value for every mandatory field, and add something under Error.

Good to know

  • The person is only emailed if you choose an Email template for them. Without one, the ticket is created quietly, and the CC email recipients and Attachment(s) aren’t used – tell the person in a Send message.
  • Attachments that can’t be sent are left out, and the email still goes. Up to 10 files can be attached, 20 MB in all.
  • If the person in the chat already has a different email address, Proto creates a new person for the ticket.
  • Email isn’t checked. Collect it with an Ask survey question set to Email, so you know it’s valid.
  • You can create a ticket from your own systems too – see Create a ticket in the External API.

Stuck? Ask Advisor in the Proto dashboard, or contact us.

© Proto