There are two custom prompt types that will assign a volunteer to a group: DATABASE_GROUP and DATABASE_GROUP_DEFINED.  Simply add one of these prompts to your event and the volunteer will be assigned.  The DATABASE_GROUP prompt allows volunteers to choose which group they should be in, and the DATABASE_GROUP_DEFINED prompt will automatically assign them to a group.