AI Engine Pro for Headless React + WooCommerce build
-
1. Headless React Integration I am building my custom chat UI in React. I see that AI Engine provides a REST API. Can my React frontend securely
POSTto this API to handle both conversational text (answering questions about neon signs) and image generation (generating logo concepts via DALL-E 3) within the same chat flow?2. Authentication & Rate Limiting via REST To prevent API billing abuse, I need to limit registered users to around 15 requests. I will be authenticating my React users via JWT (likely using CoCart). Will AI Engine Pro’s built-in usage tracking, analytics, and user limits automatically apply to requests made over the REST API when the user is authenticated via JWT?
3. Discussion Memory Retention I know AI Engine handles discussion memory and history. Because this is a high-traffic setup, I want to keep my database lean by only retaining chat history for 7 days. Does the plugin have a built-in retention limit for chat logs, or will I need to write a custom WordPress cron job to clean up older chat entries?
4. Intercepting Output for WooCommerce When a user generates a logo they like, I want them to be able to click a button in my React UI to add it to their cart as a custom neon sign product. Does the AI Engine REST API return the generated image URL in a predictable JSON response so my React frontend can easily extract it and pass it to the WooCommerce cart API as custom order metadata?
Thank you for your time, looking forward to your insights!
You must be logged in to reply to this topic.