Groq LLM, how to properly configure input array

Hey folks,
Hope you’re all doing well!

I need some help here, please.

The flow is working fine, but I couldn’t figure out how to include the role system. Without it, I can’t pass instructions to Gloq about what it’s supposed to do.

Array aggregator config:

Here’s what the module Groq is receiving as input:

[
    {
        "array": [
            {
                "role": "user",
                "content": "Data1"
            },
            {
                "role": "user",
                "content": "Data2"
            },
            {
                "role": "user",
                "content": "DataX"
            }
]

I tried customizing the message directly in Groq, but no luck. Groq keeps returning the error message: Array of objects expected in parameter ‘messages’.

Any tips on how to adjust this?

Thanks a lot! :blush: