How can I create a WordPress plugin to run one of my assistants?

I have been trying to use bolt.new to create a WP plugin to run one of my OpenAI assistants to no avail. The functionality is simply not there.

Maybe this gives a few hints.

I mean you probably don’t have a custom gpt autocoding assistant - so you will have to change the prompts and copy and paste the code… but still that’s how you can build one…

2 Likes

Unfortunately, and to the frustration of many of us, GenAI coding SaaS tools don’t seem to be suitable for production ready applications just yet. It’s getting there but not quite there yet.

I would start with a WordPress plugin code template to help with well structured code and then implement an API for your OpenAI assistant. It’s not that big of a project but just requires some careful considerations to ensure compatability with your WordPress setup and version, including any potential conflicts with other plugins, the theme, caching, security setup, CDNs, page-speed considerations, and your server-side/hosting setup.

Rather than Bolt, if you want to give it a go, I would suggest trying Codium Windsurf’s IDE and use their cascade feature to help automate your coding process. It’s messy and buggy but could help get the job done for you.

Alternativley, if this is a project that you have the budget to hire a freelance developer who can navigate both the GenAI territory and WordPress, that would be a worthwhile approach.

2 Likes

Wow! Super helpful thanks! I do not have an autocoder, but I get the idea. Thanks a lot!

1 Like

It depends on what your assistant is designed to do.

Are you planning to use it to optimize your WordPress site, or are you aiming to provide a chat experience for your users?

Hey
I wanted to offer a customer services experience really. For a photographer

2 Likes

My rule of thumb when building anything with ChatGPT is to keep things as compartmentalized as possible.

It helps maintain a small context window, which reduces the risk of AI hallucinations and prevents bugs from spiraling out of control.

In your specific case IMO it’s important to clearly separate three core components:

  1. PHP SDK – Handles the API integration and backend communication.
  2. Assistant/Chat Implementation – Manages the UI and conversation flow.
  3. Assistant Functions – Contains your custom logic and service rules.

I highly recommend finding a reliable resource for the first two components and focus on writing simple, effective assistant functions using tools like bolt.new, ChatGPT, Grok, Claude, etc…