To view the segment grammar of a message:
Message Grammar Window, Showing Segment Grammar Panel Highlighted
From the Segment Grammar panel, you can easily add/remove segments and segment groups in the message. You can also set whether or not the segments and segment groups are optional or repeating, and determine a repetition threshold for them.