# AI prompt to summarize the names of multiple tasks in a collection?

**URL:** <https://community.fibery.io/t/ai-prompt-to-summarize-the-names-of-multiple-tasks-in-a-collection/5429>\
**Category:** Get Help\
**Tags:** ai\
**Created:** [November 20, 2023, 8:39pm UTC](https://community.fibery.io/t/ai-prompt-to-summarize-the-names-of-multiple-tasks-in-a-collection/5429 "2023-11-20T20:39:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [November 20, 2023, 8:39pm UTC](https://community.fibery.io/t/ai-prompt-to-summarize-the-names-of-multiple-tasks-in-a-collection/5429/1 "2023-11-20T20:39:20Z")

</div>

I’ve reviewed all of the AI documentation and done some community searches but still coming up short in being able to generate a summary (essentially release notes) of the work a team is including in a sprint.

Here’s the prompt I’m using, but I keep getting a “I’m sorry, I cannot generate a story without any specific details or prompts.” result.

```auto
[ai temperature=0.5 maxTokens=4000]
{{AI prompt.Write a client-friendly, point form summary of all the tasks linked to this iteration.}}
{{Task.Name}}
"""
[/ai]

```

I’m sure it’s a flaw in my markdown. Could anyone help nudge me in the right direction?

Structure is Release → Iteration → Tasks → Subtasks

 ![scrnli_11_20_2023_3-31-01 PM](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/3/33b8bab15fda3bfd1b43483cd8aee54121b4d1ce.png)

---

<div class="post-metadata">

**Author:** ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)\
**Post date:** [November 21, 2023, 8:57am UTC](https://community.fibery.io/t/ai-prompt-to-summarize-the-names-of-multiple-tasks-in-a-collection/5429/2 "2023-11-21T08:57:51Z")

</div>

I believe the prompt is not correct, please try something like this

> [@interr0bangr](#):
>
> ```auto
> [ai temperature=0.5 maxTokens=4000]
> Write a client-friendly, point form summary of all the tasks linked to this iteration.
> """
> {{Tasks.Name}}
> """
> [/ai]
> 
> ```

---

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [November 21, 2023, 2:20pm UTC](https://community.fibery.io/t/ai-prompt-to-summarize-the-names-of-multiple-tasks-in-a-collection/5429/3 "2023-11-21T14:20:24Z")

</div>

Thanks @mdubakov, but still didn’t seem to work.

```auto
[ai temperature=0.5 maxTokens=4000 model=gpt-4]
Write a point form summary of the following tasks that were complete in this iteration.
"""
{{Tasks.Name}}
"""
[/ai]

```

gives me the following fibery error in a popup:

1. Failed to execute Action “Overwrite Iteration Summary”: Query with permissions does not support collection field expression ended with secured field. Use sub query expression, please.

```auto
[ai temperature=0.5 maxTokens=4000 model=gpt-4]
Write a point form summary of the following tasks that were complete in this iteration.
"""
{{Tasks}}
"""
[/ai]

```

gives me a different error popup:

1. Failed to execute Action “Overwrite Iteration Summary”: Invalid field expression, field: Clients/Tasks field is not primitive.

```auto
[ai temperature=0.5 maxTokens=4000 model=gpt-4]
Write a point form summary of the following tasks that were complete in this iteration.
"""
{{Iteration.Tasks.Name}}
"""
[/ai]

```

and

```auto
[ai temperature=0.5 maxTokens=4000 model=gpt-4]
Write a point form summary of the following tasks that were complete in this iteration.
"""
{{Iteration.Tasks}}
"""
[/ai]

```

Run successfully (no error pop ups) but it doesn’t see the content I’m trying to provide and spits out the result: “The text for summarizing is not provided. Please provide the relevant details for the task completion.”

---

<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:** [November 21, 2023, 2:25pm UTC](https://community.fibery.io/t/ai-prompt-to-summarize-the-names-of-multiple-tasks-in-a-collection/5429/4 "2023-11-21T14:25:51Z")

</div>

If you’re running this automation in the Iterations db, then Tasks is a collection, so I imagine something like the following should not give an error:

```auto
[ai temperature=0.5 maxTokens=4000 model=gpt-4]
Write a point form summary of the following tasks that were complete in this iteration.
"""
{=Tasks:Name=}
"""
[/ai]

```

`{=Tasks:Name=}` will be replaced with a comma-separate list of Tasks.

See [here](https://the.fibery.io/@public/User_Guide/Guide/Markdown-Templates-53) for how markdown works in Fibery.

However, I don’t know if the result will be what you are hoping for. You will be asking the AI to summarise the Tasks based on just a list of their names. I don’t think you can expect much apart from maybe hallucinations from GPT.

---

<div class="post-metadata">

**Author:** ![interr0bangr](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/interr0bangr/32/8089_2.png) [@interr0bangr](https://community.fibery.io/u/interr0bangr)\
**Post date:** [November 21, 2023, 5:47pm UTC](https://community.fibery.io/t/ai-prompt-to-summarize-the-names-of-multiple-tasks-in-a-collection/5429/5 "2023-11-21T17:47:01Z")

</div>

Perfect, that worked @Chr1sG . You’re right that it doesn’t do anything too fancy, but it’s a start.

Now that I can at least get something to be generated, I can play with the prompt to get the most value from it.
