Loop in Maestro or in UIPath Studio Web or in Agentic AI

HI Everyone,
I tried to do this :

  1. i want loop every file in this txt file

    and send the output argument as strOutputText

2.Then i send the argument into agenticAI with argument input strOutputText, and extract the output into 3 argument : Invoice Number, BL Number, Departure Date

3.and then i want to save in CSV like table for example
Invoice Number,BL Number, Departure Date
xx1, BL1, 16-11-2025
xx2, BL2, 17-11-2025