# Creating a Task from a Zendesk Ticket — Accessing Comments in AI Prompt

**URL:** <https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588>\
**Category:** Get Help\
**Created:** [April 9, 2025, 4:12pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588 "2025-04-09T16:12:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 9, 2025, 4:12pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/1 "2025-04-09T16:12:56Z")

</div>

I’m setting up an automation to create a Task when a Zendesk ticket is marked as type “Task.” The automation triggers just fine, but I’m stuck on the AI prompt.

I want the task title to be generated based on the ticket’s context, using the Comments field. I can access Comments in a formula, but I can’t seem to get it to work in the AI prompt.

Any tips on how to properly reference the Comments field in an AI prompt?

 ![CleanShot 2025-04-09 at 12.12.32](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/9/97521a6fe79ff26d348d5704f7ef0dba709f3628.png)

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 9, 2025, 5:04pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/2 "2025-04-09T17:04:50Z")

</div>

You need to reference fields using double braces, e.g. `{{Name}}`  
I suggest looking at the examples in the user guide:

> **[AI in Automations](https://the.fibery.io/@public/User_Guide/Guide/AI-in-Automations-162)**

---

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 9, 2025, 5:15pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/3 "2025-04-09T17:15:05Z")

</div>

Tried referencing it every way I could think of with no luck. I’ve reviewed all the docs and videos multiple times, but still can’t get it to work as expected.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 9, 2025, 7:36pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/4 "2025-04-09T19:36:01Z")

</div>

Did you try  
`{- Comments:Text -}`  
?

---

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 9, 2025, 7:47pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/5 "2025-04-09T19:47:22Z")

</div>

Yep, but it makes sense to me that it wouldn’t work. I’m guessing I need to reference Step One somehow, and then pull `comments:Text` from it.

In the formula field it would look like this: `[Step 1 Ticket].Comments`

 ![CleanShot 2025-04-09 at 15.44.47](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/e/e0cfed09280017f292d0afda80590984236277c0.png)

---

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 9, 2025, 8:28pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/6 "2025-04-09T20:28:40Z")

</div>

I also tried this workaround to bring the context from Step 1 into Step 2, but that didn’t work either.

 ![CleanShot 2025-04-09 at 16.25.57](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/3/374664c58fa1353ea0c541e416bf16b80039e09b.png)

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 9, 2025, 8:40pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/7 "2025-04-09T20:40:50Z")

</div>

> [@Edan](#):
>
> I’m guessing I need to reference Step One somehow, and then pull `comments:Text` from it.

Nope. When passing parameters to the AI (or in markdown) the syntax is not the same as used in formulas.  
Your case is almost identical to the example in the user guide.

> **[AI in Automations](https://the.fibery.io/@public/User_Guide/Guide/AI-in-Automations-162/anchor=Summarize-Comments-thread--cd8e1f91-436f-4992-83f1-f5bec0462b80)**

Just try it 😊

---

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 9, 2025, 8:47pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/8 "2025-04-09T20:47:15Z")

</div>

Like I wrote above, I have a bunch of times. It’s not working.

 ![CleanShot 2025-04-09 at 16.46.19](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/d/d2f72677f83bef0b83a99fc6ec1e454d356dce2d.png)

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 10, 2025, 6:08am UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/9 "2025-04-10T06:08:23Z")

</div>

I don’t know what to say. I have tested a version for updating both a name field and a description field and it works as expected for me.

---

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 10, 2025, 12:49pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/10 "2025-04-10T12:49:21Z")

</div>

Thanks for sharing the video! I finally understand where the miscommunication has been 🙂

The Comments you’re using are from the entity itself. I’m referring to the Comments field from the Zendesk integration—the built-in Rich Text one.

My automation likely worked—the actual comments were just empty. In Fibery’s Zendesk integration, the ticket context is stored in a dedicated Rich Text field called Comments.

So now the question is:

How can I access the Zendesk Integration’s Comments field specifically, and not the entity’s default comments?

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 10, 2025, 1:17pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/11 "2025-04-10T13:17:47Z")

</div>

What does your schema look like?  
Do you want to summarise the contents of a rich text field in the Ticket (called Comments) or do you want to summarise the contents of the rich text field (called Comments) from a set of entities that are linked to the triggering Ticket?

For the former, it should be very easy:

---

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 10, 2025, 1:35pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/12 "2025-04-10T13:35:16Z")

</div>

I’d like to summarize the contents of a rich text field in the Ticket called **Comments**.

Not sure how I can share the schema.

Here’s the trigger, the ai markup, and the error I face when trying to use `{{Comments}}` 👇

 ![CleanShot 2025-04-10 at 09.27.01](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/3/3bf801a7f666c0a5357d5e77608cc1842dafa94b.png)

 ![CleanShot 2025-04-10 at 09.22.38](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/9/95fa5c93fa7697e0ff44f930d5850b554d603e19.png)

![CleanShot 2025-04-10 at 09.22.06](https://us1.discourse-cdn.com/flex020/uploads/fibery/optimized/2X/7/79f02c476578fe0459ff86405a16bb8d59fe4364_2_690x23.png)

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 10, 2025, 2:13pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/13 "2025-04-10T14:13:54Z")

</div>

What fields does the Ticket db have?

---

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 10, 2025, 2:30pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/14 "2025-04-10T14:30:05Z")

</div>

![CleanShot 2025-04-10 at 10.29.50](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/a/a69d95a9dfbc4cea747bc567e30c64fc2a89ac8a.png)

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 10, 2025, 3:03pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/15 "2025-04-10T15:03:54Z")

</div>

Thanks for all that info. I think we’re now on the same page, and I am trying to figure out the answer 🙂

---

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 10, 2025, 3:18pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/16 "2025-04-10T15:18:21Z")

</div>

Much appreciated! I also tried renaming the field in the integration settings to see if the name `comments` was causing a conflict—but that didn’t work either.

---

<div class="post-metadata">

**Author:** ![RonMakesSystems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ronmakessystems/32/14122_2.png) [@RonMakesSystems](https://community.fibery.io/u/RonMakesSystems)\
**Post date:** [April 10, 2025, 4:28pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/17 "2025-04-10T16:28:29Z")

</div>

I think I see the problem.

Do you have a real comments field on the “Task” database?

When you create a task and set the fields using ai, its using the fields from the task entity, not the step 1 triggering entity.

Work around full thought process as it may be helpful:

You should be to add a lookup to the related comments field and call it “Ticket Comments”, then generate with AI from that field. Tested, not possible because the lookup gets greated after the AI request is sent.

Workaround: add another step. Still doesn’t work for some reason… Maybe the steps don’t wait for eachother to finish?

Workaround: add a rule in the Tasks DB to update field with AI when the lookup field is changed. Works! But then if the ticket comment changes (idk if it does) it’ll retrigger and overwrite the task db.

Solution: Filter on the Tasks rule to only run if the description is empty.

Lemme know if this works!

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [April 11, 2025, 3:14pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/18 "2025-04-11T15:14:25Z")

</div>

It appeared to be a Bug on our side.  
For “Add Item” Action fields referenced via `{{` in a prompt were always resolved incorrectly.  
I’ve fixed it, now it should be resolved to field values of triggered entity.

Btw, If you have doubts about exact values that are sent to AI (I know template syntax is cubersome), you can try to use the same template for setting Description field. And see what you get there. Prompt template is resolved in the same way as template for rich-text field (except the Bug above, but it’s fixed already)

---

<div class="post-metadata">

**Author:** ![Edan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/edan/32/11187_2.png) [@Edan](https://community.fibery.io/u/Edan)\
**Post date:** [April 12, 2025, 3:08am UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/19 "2025-04-12T03:08:51Z")

</div>

Yes! It’s finally working as expected.

Thanks for releasing the hotfix, and a big thank you to @Chr1sG for all the back and forth on this.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 19, 2025, 2:36pm UTC](https://community.fibery.io/t/creating-a-task-from-a-zendesk-ticket-accessing-comments-in-ai-prompt/8588/20 "2025-04-19T14:36:59Z")

</div>


