Intents (Functions) in ChatGPT

 

For Intents, you have to create an Intent inside automations.

Workflow Example

A sample workflow is demonstrated.

The initial step involves clearing chat history, crucial for looping through the completion until all parameters are captured.

  • A simple system message prompts the user to ensure all parameters are captured before finishing the function call.

Output Handling

Output handling involves checking the chat finish reason. Customization options include setting up intents and mapping parameters. It's essential to test thoroughly to ensure all parameters are correctly captured. Redirecting users back to the chat completion may be necessary if parameters are missing.

  • If the reason is a function call, it indicates all parameters are captured, enabling direct output to the user.

The discussed method isn't limited to appointment bookings but can be extended to various intents.

Video Tutorial

 

https://www.youtube.com/watch?v=67nWUjxw41w