Can we do patternisation of xmls like sending varying inputs after the first call.

Let me give you an example.

We have a system where we send one xml as an input to our system. Which internally calls multiple systems and appends the xml to a bigger one and after all the internal calls are done we get an output xml, all this is handled by RabbitMQ.

So when we are calling these internal systems can we have a pattern of sending different sets of inputs for different items.