As posted by OP as a resolution:
- Make final output to be linked with python code block instead of reply generation block.
- Reply generation block outputs to the python code block.
However, despite being able to achieve this, there was a unexpected behaviour of Microsoft logic app automatically removing comma between inline citation for some reason, so they ended up implementing this in logic app side (using js code block).
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.