Seeing what dialog choice a user decides with a script

Hello developers, I’m trying to script a bot used as a chef for players and I need them to use roblox dialog system to save time so how would I make it so when a player selects a dialog choice the script would print what the choice was for example the player says yes the script would print yes or fire a function thanks for the help!

Roblox developer wiki is your friend. For simple questions or concerns like this I would search the wiki before the forums.

There is an event you can listen for. For when players make a choice.

(NPC Dialog Boxes)