You should be able to do this. Either create one slot to capture any value, and if string contains an @ assume it is an email if not assume it is an account number. Issue there of course is validating customer input, which is doable but requires some extra thinking.
Or create two slots, both as regular expressions - finding a regular expression for email addresses - a google or LLM can find you one of those easily.
Creating one for an account number format should be fairly straight forward too.
As two slots:


The key is here under utterances, I need to show it examples of what those slots will look like

Then we just do a wait for input:

Then in my task for the intents I'm just going to read back which slot is filled and the value

end result


Does that give you what you are after?
------------------------------
Anton Vroon
------------------------------
Original Message:
Sent: 05-06-2025 16:18
From: Carlos Alonso
Subject: Trying to capture two pieces of data from an intent
It seems like this should be possible but I'm new to bot creation so I could use some guidance.
We're creating a digital bot for a messaging flow and we'd like to be able to ask the customer to provide either their email address or account number. We'd store those in different slots depending on whether the response contains an @ symbol or not. Is something like this possible?
Thanks
#ConversationalAI(Bots,AgentAssist,etc.)
------------------------------
Carlos Alonso
Dow Jones & Company, Inc.
------------------------------