Hi @CU26041507-0,
It sounds like what you really want is this:
“I’d like the user to type all their details in one message, and then have the agent automatically pick out each field (name, ID, email, etc.) and use them to create the user in Excel and XML.”
So instead of asking three separate questions, you’d like the user to send something like:
- user name: AAA
- user ID: 1233
- user email: aaa@outlook.com
and then have those values go into variables like newUserName, newUserID, and newUserEmail that you can pass to the next step.
Your current idea with the JSON extraction block is heading in the right direction, but the problem is that relying on raw AI output to perfectly return JSON is often a bit fragile in Copilot Studio.
What you’re really looking for is a good way to:
- Let the user provide all info in one go.
- Reliably map each piece (name, email, IDs, action) into separate variables.
- Use those variables to add the user to Excel and generate your XML.
If that’s what you’re after, there are a couple of patterns that usually work better in Copilot Studio:
- A “form style” message (for example, an Adaptive Card) where each field is captured directly into its own variable.
- Or using entities/slot filling so the agent can extract multiple values from one message and only ask follow‑up questions for anything that’s missing.
If this matches what you’re trying to do, I’m happy to walk through a concrete example of how to set up the topic so the values actually land in your variables and can be passed to Excel/XML.
✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.
❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).
🏷️ For follow-ups @Sajeda_Sultana