# Read daily ticket counts out of Zammad: n8n workflow template

> Started by a clock. It calls services over plain HTTP rather than through connectors. 17 steps, 2 branches: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/read-daily-ticket-counts-out-of-zammad (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Customer support](https://millionrounds.com/workflows?category=Customer+support#library)

# Read daily ticket counts out of Zammad

Started by a clock. It calls services over plain HTTP rather than through connectors. 17 steps, 2 branches: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fread-daily-ticket-counts-out-of-zammad)

**17 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**0** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 1 Logic 8 Service 8

The steps in the order they run, from what starts it.

- 1 **Run every day at 11:50pm** Schedule trigger *Starts it*
- 2 **Set variables** Set *Logic*
- 3 **Index existing?** Http Request *Service*
- 4 **Yes / No** If *Logic*
- 5 **Search for today data** Elasticsearch *Service*
- 6 **Create the index: zammad_history_ticket_count** Elasticsearch *Service*
- 7 **Are there datasets?** If *Logic*
- 8 **Read all states out of Zammad** Http Request *Service*
- 9 **Read all groups out of Zammad** Zammad *Service*
- 10 **Delete all documents of today** Elasticsearch *Service*
- 11 **Reduce the fields** Set *Logic*
- 12 **Merge data** Merge *Logic*
- 13 **Reduce to one** No Op *Logic*
- 14 **Read all the counts out of Zammad** Http Request *Service*
- 15 **Merge again** Merge *Logic*
- 16 **Reduce fields for elasticsearch** Set *Logic*
- 17 **Create document in elasticsearch** Elasticsearch *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 17, with 2 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 17 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fread-daily-ticket-counts-out-of-zammad)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also customer support, with the same services where possible, closest in size first.

- [**Automate Instagram complaint handling with Claude and SLA** 17 steps · Google Sheets, Slack](https://millionrounds.com/workflow/automate-instagram-complaint-handling-with-claude-and-sla)
- [**Forward Chatwoot Messages to WhatsApp with Evolution API** 17 steps](https://millionrounds.com/workflow/forward-chatwoot-messages-to-whatsapp-with-evolution-api)
- [**KakaoTalk notification for the government support program** 17 steps · Google Sheets](https://millionrounds.com/workflow/kakaotalk-notification-for-the-government-support-program)
- [**Route grounded RAG support tickets with Claude and Pinecone** 17 steps · Google Sheets, Slack](https://millionrounds.com/workflow/route-grounded-rag-support-tickets-with-claude-and-pinecone)
- [**Send Zendesk tickets to Pipedrive contacts and assign tasks** 17 steps · Pipedrive, Zendesk](https://millionrounds.com/workflow/send-zendesk-tickets-to-pipedrive-contacts-and-assign-tasks)
- [**Triage and escalate tenant complaints from Gmail or forms** 17 steps · Airtable, Gmail](https://millionrounds.com/workflow/triage-and-escalate-tenant-complaints-from-gmail-or-forms)
