# Creating Tickets from Email

Give a department a support email address, so each email sent to it becomes a ticket that your team answers from the agent channel or the dashboard

Risotto creates a ticket from each email sent to a support address, such as `it@northwind.com`. In Risotto, each support address is an email inbox that belongs to one department. Your email provider forwards the address's mail to the inbox's forwarding address, and Risotto opens the tickets in that department.

The agent does not answer email tickets on its own. A person on your team answers them from the agent channel or the dashboard, and Risotto emails each answer to the sender.

## Set up an inbox

You need the Org Admin or Manager role. See [Permissions](https://www.tryrisotto.com/docs/operating/permissions).

1. **Open Email's Requests tab**

   Go to **Settings > Request Sources** and, on the **Email** card, click **Manage in Email**.

2. **Click Add Email Address**

   On the **Email inboxes** card, click **Add Email Address**. The **Add Email Source** dialog opens.

3. **Enter the address and department**

   Enter the **Support Email Address** that people write to, and pick the **Department** whose tickets it creates. Leave **Allow External Senders** off unless people outside your organization write to this address.

   *Product example: The Add Email Source dialog with it\@northwind.com for the IT department, Allow External Senders off, and the Create Email Source button.*

4. **Create the inbox**

   Click **Create Email Source**. Risotto creates the inbox and its forwarding address.

5. **Copy the forwarding address**

   On the **Email inboxes** card, open the inbox's row and click **Copy** next to **Forwarding Address**.

   *Product example: Email's Requests tab with the it\@northwind.com inbox open, with Copy next to its forwarding address.*

6. **Forward the support address's mail**

   In your email provider, forward the support address's mail to the forwarding address. For Google Workspace, use a routing rule, not a Google Group. See [Email provider setup](https://www.tryrisotto.com/docs/integrations/ticketing/email#email-provider-setup).

7. **Send a test email**

   From your work account, send an email to the support address. A ticket opens in the department.

For each inbox setting, such as **Create tickets**, **Continue over DM**, and **Track CC recipients**, see [Request Sources](https://www.tryrisotto.com/docs/dashboard/settings/request-sources#email-inboxes).

## Find a department's email address

The department's own settings pages do not show its email addresses. To see them, go to **Settings > Request Sources**: the **Email** card lists each support address with its forwarding address and its department. Only Org Admins and Managers can open the page, so anyone else asks an Org Admin for the address.

## What happens to an email

When an email reaches the forwarding address, Risotto:

- Opens a ticket in the inbox's department, in **Awaiting support**, with no assignee.
- Uses the email's subject as the ticket's title. When the email has no subject, Risotto writes a title from the body.
- Adds the email's body as the request, with its attachments.
- Makes the sender the requestor.
- Posts the ticket in the department's agent channel in Slack, with **\[Email]** before its title. A department with no agent channel uses the default department's.
- Creates the ticket in your ticketing system too, when the department has [ticket sync](https://www.tryrisotto.com/docs/dashboard/settings/departments#ticket-sync).
- Sends the requestor a Slack DM, when the inbox has **Continue over DM** on.

*Product example: An email ticket's thread in the #risotto-agents-test agent channel in Slack, drawn in outline: Risotto's \[IT-142] \[Email] post with the ticket's card, and Marcus Lee's reply.*

Some emails do not open a ticket:

- **From outside your organization**: with **Allow external senders** off, Risotto drops an email from anyone who is not a known member of your Slack workspace. The sender gets no bounce.
- **To a paused inbox**: with **Create tickets** off, Risotto ignores new emails. Replies to an existing ticket's email thread still reach the ticket.
- **Replies**: a reply in a ticket's email thread is added to that ticket. See [Replies to a resolved ticket](https://www.tryrisotto.com/docs/integrations/ticketing/email#replies-to-a-resolved-ticket).

## Answer an email ticket

- **In Slack**: reply in the ticket's thread in the agent channel. Risotto emails your reply to the requestor. When you are a member of the ticket's department and the ticket has no assignee, the reply also assigns it to you.
- **In the dashboard**: post a public reply on the ticket. Risotto emails it to the requestor.

Internal notes are never emailed. In the agent channel, add `:lock:` to a reply to keep it internal. See [Slack emojis](https://www.tryrisotto.com/docs/operating/slack-emojis).

To have the agent work on the ticket, tag @Risotto in the agent channel thread.

> **Warning:** Risotto emails your reply from an inbox of the ticket's department. If you
> move an email ticket to a department with no email inbox, the requestor does
> not get your replies. See [Replies by
> email](https://www.tryrisotto.com/docs/integrations/ticketing/email#replies-by-email).

Source: https://www.tryrisotto.com/docs/operating/creating-tickets-email
