Forum in maintenance, we will back soon 🙂
AI tools in WP using Gemini api
Hi friends,
How to create AI tool in wp website using google gemini api with only WpCode Snippets and Simple PHP Functions similar to what's explained in the course which uses OpenAI API?
What is the tool's functionality that you're looking for?
@driss-sa have you tried using ChatGPT to create a wordpress plugin for you based on your desires?
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
it is the same concept friend, you just change from OpenAI to Gemeni API. I will be creating an example soon.Â
Thanks for feedback 🙂Â
@admin The aim issue is that we need to install the package "google-generativeai" to make the code work, but how to host this package and call it from WpCode snippets functions.
@driss-sa You can't use these packages this way in WordPress; you should use based API calls, check for curlÂ
@driss-sa if you're concerned about the slowness of WordPress then you need to learn how to cache your pages including plugins. You've got to use plugins in WordPress else you're going to fail.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@ADMIN thanks Hasan for your video about Gemini api. I applied your method, but I got an error:
TypeError: Cannot read properties of undefined (reading '0') from this line of code :'const titles = jsonResponse.data[0].titles;'
Need help please 🙂
@driss-sa it sounds like nothing was returned and you're trying to reference an empty data element. What is your URL.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@admin hi can you provide working script of gemini integration with WordPress that we can use in aws platformÂ
because lots of people trying but its not working in live hosting Â
Posted by: @sonu-choudharybecause lots of people trying but its not working in live hosting
Please provide a screenshot of the error and share it.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@sonu-choudhary I already created a full guide on using Gemini, did you test it?
what is the problem or error?
Â