Skip to content

Commit bef4001

Browse files
authored
Fixes #1002 - Add AI agent usage in macros
1 parent 8d8a521 commit bef4001

File tree

4 files changed

+32
-23
lines changed

4 files changed

+32
-23
lines changed

ai/ai-agents.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ Important Information
2424

2525
- To configure AI agents, the ``admin.ai_agent`` permission is required
2626
- AI agents don't run on their own. They have to be invoked by a
27-
:doc:`trigger </manage/trigger>` or a
28-
:doc:`scheduler job </manage/scheduler>` with the action
29-
**AI** > **AI Agent**.
27+
:doc:`trigger </manage/trigger>`, a :doc:`scheduler job </manage/scheduler>`
28+
or a :doc:`macro </manage/macros>` with the action **AI** > **AI Agent**.
29+
- By creating a macro with an AI agent action, your agents can run it on demand.
3030
- If an AI agent applies changes to a ticket, you can find an entry in the
3131
ticket history with the name of the AI agent.
3232

@@ -42,17 +42,17 @@ Create an AI agent by clicking the **New AI Agent** button in the top right
4242
corner. This opens a wizard where you can choose the type of the agent and
4343
additional settings based on the selected type, see :ref:`ai-agent-types` for
4444
details. The action column with the ︙ button allows you to clone or delete an
45-
AI agent. You can only delete AI agents which are not used in triggers and
46-
schedulers. You can find this information in the two columns in the AI agent
47-
table.
45+
AI agent. You can only delete AI agents which are not used in triggers,
46+
scheduler jobs and macros. Check the **Used in** column and hover over an
47+
entry to see where an AI agent is used.
4848

4949
.. _ai-agent-types:
5050

5151
AI Agent Types
5252
--------------
5353

54-
Define your AI agents and use them afterwards in triggers or scheduler jobs.
55-
An example for a trigger configuration could look like this:
54+
Define your AI agents and use them afterwards in triggers, scheduler jobs or
55+
macros. An example for a trigger configuration could look like this:
5656

5757
- Activated by: **Action**
5858
- Action execution: **Selective**

images/ai/manage-agents.png

7.8 KB
Loading

locale/admin-docs.pot

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Zammad Admin Documentation pre-release\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-12-04 09:19+0100\n"
11+
"POT-Creation-Date: 2025-12-04 15:20+0100\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -46,7 +46,11 @@ msgid "To configure AI agents, the ``admin.ai_agent`` permission is required"
4646
msgstr ""
4747

4848
#: ../ai/ai-agents.rst:26
49-
msgid "AI agents don't run on their own. They have to be invoked by a :doc:`trigger </manage/trigger>` or a :doc:`scheduler job </manage/scheduler>` with the action **AI** > **AI Agent**."
49+
msgid "AI agents don't run on their own. They have to be invoked by a :doc:`trigger </manage/trigger>`, a :doc:`scheduler job </manage/scheduler>` or a :doc:`macro </manage/macros>` with the action **AI** > **AI Agent**."
50+
msgstr ""
51+
52+
#: ../ai/ai-agents.rst:29
53+
msgid "By creating a macro with an AI agent action, your agents can run it on demand."
5054
msgstr ""
5155

5256
#: ../ai/ai-agents.rst:30
@@ -62,15 +66,15 @@ msgid "Screenshot shows AI agents management"
6266
msgstr ""
6367

6468
#: ../ai/ai-agents.rst:41
65-
msgid "Create an AI agent by clicking the **New AI Agent** button in the top right corner. This opens a wizard where you can choose the type of the agent and additional settings based on the selected type, see :ref:`ai-agent-types` for details. The action column with the ︙ button allows you to clone or delete an AI agent. You can only delete AI agents which are not used in triggers and schedulers. You can find this information in the two columns in the AI agent table."
69+
msgid "Create an AI agent by clicking the **New AI Agent** button in the top right corner. This opens a wizard where you can choose the type of the agent and additional settings based on the selected type, see :ref:`ai-agent-types` for details. The action column with the ︙ button allows you to clone or delete an AI agent. You can only delete AI agents which are not used in triggers, scheduler jobs and macros. Check the **Used in** column and hover over an entry to see where an AI agent is used."
6670
msgstr ""
6771

6872
#: ../ai/ai-agents.rst:52
6973
msgid "AI Agent Types"
7074
msgstr ""
7175

7276
#: ../ai/ai-agents.rst:54
73-
msgid "Define your AI agents and use them afterwards in triggers or scheduler jobs. An example for a trigger configuration could look like this:"
77+
msgid "Define your AI agents and use them afterwards in triggers, scheduler jobs or macros. An example for a trigger configuration could look like this:"
7478
msgstr ""
7579

7680
#: ../ai/ai-agents.rst:57
@@ -6972,55 +6976,59 @@ msgstr ""
69726976
msgid "add new notes to a ticket"
69736977
msgstr ""
69746978

6975-
#: ../manage/macros/how-do-they-work.rst:24
6979+
#: ../manage/macros/how-do-they-work.rst:23
6980+
msgid "run an :doc:`AI agent </ai/ai-agents>`"
6981+
msgstr ""
6982+
6983+
#: ../manage/macros/how-do-they-work.rst:25
69766984
msgid "There are **no** actions for:"
69776985
msgstr ""
69786986

6979-
#: ../manage/macros/how-do-they-work.rst:26
6987+
#: ../manage/macros/how-do-they-work.rst:27
69806988
msgid "sending a reply to the customer"
69816989
msgstr ""
69826990

6983-
#: ../manage/macros/how-do-they-work.rst:28
6991+
#: ../manage/macros/how-do-they-work.rst:29
69846992
msgid "Unlike triggers, the scheduler, and text modules, macro actions do **not** support the use of :doc:`/misc/variables`."
69856993
msgstr ""
69866994

6987-
#: ../manage/macros/how-do-they-work.rst:32
6995+
#: ../manage/macros/how-do-they-work.rst:33
69886996
msgid "If the ticket is missing a required attribute and the macro doesn't set it, then **no actions will be applied**."
69896997
msgstr ""
69906998

69916999
#: ../manage/macros/how-do-they-work.rst:0
69927000
msgid "Once completed..."
69937001
msgstr ""
69947002

6995-
#: ../manage/macros/how-do-they-work.rst:37
7003+
#: ../manage/macros/how-do-they-work.rst:38
69967004
msgid "After running this macro, should Zammad remain on the current tab, close it, or automatically switch to the next ticket? (Does not apply when running macros \"in bulk\".)"
69977005
msgstr ""
69987006

6999-
#: ../manage/macros/how-do-they-work.rst:42
7007+
#: ../manage/macros/how-do-they-work.rst:43
70007008
msgid "What should other Zammad admins know about this macro? (Visible only via the \"Edit: Macro\" dialog, Rails console, and API.)"
70017009
msgstr ""
70027010

7003-
#: ../manage/macros/how-do-they-work.rst:46
7011+
#: ../manage/macros/how-do-they-work.rst:47
70047012
msgid "Which :doc:`/manage/groups/index` are allowed to see/use this macro?"
70057013
msgstr ""
70067014

7007-
#: ../manage/macros/how-do-they-work.rst:49
7015+
#: ../manage/macros/how-do-they-work.rst:50
70087016
msgid "Choose \"inactive\" to disable this macro without deleting it."
70097017
msgstr ""
70107018

7011-
#: ../manage/macros/how-do-they-work.rst:52
7019+
#: ../manage/macros/how-do-they-work.rst:53
70127020
msgid "Managing Macros"
70137021
msgstr ""
70147022

7015-
#: ../manage/macros/how-do-they-work.rst:54
7023+
#: ../manage/macros/how-do-they-work.rst:55
70167024
msgid "Edit your macros by simply clicking on it. You can delete or even clone existing macros by clicking on the ︙ action menu and select the desired action:"
70177025
msgstr ""
70187026

70197027
#: ../manage/macros/how-do-they-work.rst:None
70207028
msgid "Screenshot showing the macro action menu"
70217029
msgstr ""
70227030

7023-
#: ../manage/macros/how-do-they-work.rst:62
7031+
#: ../manage/macros/how-do-they-work.rst:63
70247032
msgid "When cloning a macro, make sure to click \"Submit\" for the duplicate to be created."
70257033
msgstr ""
70267034

manage/macros/how-do-they-work.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Creating Macros
2020

2121
* set ticket attributes (priority, state, group, etc.)
2222
* add new notes to a ticket
23+
* run an :doc:`AI agent </ai/ai-agents>`
2324

2425
There are **no** actions for:
2526

0 commit comments

Comments
 (0)