OpenAI API integration for intent recognition, what would be best practices? - OpenAI vs Hugging Face models

I’ve built a WordPress-based AI suggestion platform using HTML/JS that currently provides basic recommendations. Check here rizzlovers.com

I’m planning to integrate OpenAI API for better intent understanding and contextual responses. Looking for community insights on:

  1. Best practices for intent classification with OpenAI API
  2. Optimal prompt engineering techniques for user queries
  3. Handling rate limits and cost optimization
  4. Alternative approaches using Hugging Face models vs OpenAI

Has anyone implemented similar intent-based systems? Would appreciate any architectural suggestions or potential pitfalls to avoid.

Current tech stack: WordPress + HTML/JS
Target: Enhanced user intent recognition and response generation

Looking for real-world experiences and recommendations

1 Like