A developer needs to detect when a user provides a 10-digit phone number. Which entity type should be used?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Todd Lammle: 'Imagine you're building a chatbot and this exact situation comes up — pattern entity is your go-to move. Pattern entities use regular expressions to detect values matching a specific format such as phone numbers or postal codes. This is a classic Domain 2: Design and Extend Conversations concept you'll want locked in before exam day.'
Full explanation below image
Full Explanation
Pattern entities use regular expressions to detect values matching a specific format such as phone numbers or postal codes. Dictionary entities detect values from a predefined word list. The @sys-number system entity detects generic numbers but not a specific formatted structure. Context variables store data; they do not detect patterns. The correct answer, "Pattern entity", directly satisfies the scenario because it aligns with watsonx Assistant's design principles and the specific capability being tested. The incorrect options ("Dictionary entity", "System entity @sys-number", "Context variable") may appear relevant but each misses a key requirement or introduces a step that is either unnecessary or belongs to a different workflow. Mastering the distinction between these approaches is essential for effective watsonx Assistant implementations and is a core focus of the Domain 2: Design and Extend Conversations section of the certification exam.