Passing outputs of One Task multiple times to other Task as 'Template Variable'

Have 2 Agents (Agent_1, Agent_2) and 2 tasks (Task_1, Task2)
Task_1 of Agent_1 runs and gets a list of output (City Names, Say 10 cities).

for each of these output of the Task_1 I need to call the Task_2
Task_2’s description must take Task_1 output as a ‘Template variable’ and execute it for all the Values
(Say Task_2 is executed for all the 10 cities one after another )

How do I accomplish this in CrewAI
I dont want to pass it as just context to Task_2 as it not guaranteed to take it as value in Template Valiable which makes my task’s description better

How to pass output of certain agent as input to other agent did not help much

Any complete example / sample code Snippet for this is highly appreciated

I think passing the output as context is still the way to go.

What you might need to do it so have the output of task 1 as a structured output eg JSON object then in the task description of task 2 be explicit that you want to perform the task on the context object for each item.

This should probably work. Try it out!!