jessvb / convo

An interactive conversational programming agent.
MIT License
5 stars 1 forks source link

Incorporate slot filling before an intent will run a procedure #112

Closed zhujessica closed 3 years ago

zhujessica commented 3 years ago

When a user trains Convo on an intent that uses entities, Convo will keep track of which entities/slots are required for that intent. Convo will prompt a user for missing entities when the user tries to invoke a procedure by saying something that has the corresponding intent.

Examples: Intent: make robot dance Training Data: make my robot dance, make the robot spin around, turn the robot around, turn the robot 180 degrees Intent: say the weather Training Data: get the weather for [Boston](city), say the weather in [Vancouver](city), get the temperature, what's the weather?, what's the weather in [Madrid](city)? Intent: bake instruction Training Data: i want to bake the cookies for [30 minutes](bake_time) at [350 degrees](bake temp), put in oven at [400 degrees](bake temp), bake for [10 minutes](bake_time), heat in oven for [half an hour](bake_time) at [400](bake temp)

Sample test: After connecting bake instruction to procedure A and then saying "bake for 30 minutes," Convo will ask "What is the bake temp?" and then once the user responds "400 degrees" (or anything else), Convo will run procedure A.