Skip to content

Forum in maintenance, we will back soon 🙂

AI tools in WP usin...
 
Notifications
Clear all

AI tools in WP using Gemini api

25 Posts
5 Users
3 Reactions
65 Views
(@driss-sa)
Posts: 3
Active Member Customer Registered
Topic starter
 

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?

 
Posted : 01/11/2024 4:07 pm
(@husein)
Posts: 550
Member Moderator
 

What is the tool's functionality that you're looking for?

 
Posted : 01/11/2024 4:15 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@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

 
Posted : 01/11/2024 8:43 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

it is the same concept friend, you just change from OpenAI to Gemeni API. I will be creating an example soon. 

 
Posted : 01/12/2024 10:47 am
(@driss-sa)
Posts: 3
Active Member Customer Registered
Topic starter
 

Thanks for feedback 🙂 

@ssadvisor I don't prefer using plugins for connecting llm APIs to avoid website slowness. 
 
@husein Regardless of the functionality, I'm looking to create a function that works in the WordPress environment to run my tools.

@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.

This post was modified 11 months ago by Driss Sa
 
Posted : 01/12/2024 5:24 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

@driss-sa You can't use these packages this way in WordPress; you should use based API calls, check for curl 

 
Posted : 01/13/2024 6:36 am
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@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

 
Posted : 01/13/2024 3:58 pm
(@driss-sa)
Posts: 3
Active Member Customer Registered
Topic starter
 

@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 🙂

 
Posted : 05/07/2024 6:13 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@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

 
Posted : 05/07/2024 6:54 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

@driss-sa you mean Gemini with WordPress? 

did you update the code? or used exactly the same?

 

 
Posted : 05/08/2024 4:13 pm
(@sonu-choudhary)
Posts: 26
Eminent Member Customer
 

@admin  hi can you provide working script of gemini integration with WordPress that we can use in aws platform 

 
Posted : 05/22/2024 12:00 pm
(@sonu-choudhary)
Posts: 26
Eminent Member Customer
 

because lots of people trying but its not working in live hosting  

 
Posted : 05/22/2024 12:01 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@sonu-choudhary

Posted by: @sonu-choudhary

because 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

 
Posted : 05/22/2024 12:18 pm
Hasan Aboul Hasan
(@admin)
Posts: 1276
Member Admin
 

@sonu-choudhary I already created a full guide on using Gemini, did you test it?

what is the problem or error?

 

 
Posted : 05/24/2024 3:37 pm
(@sonu-choudhary)
Posts: 26
Eminent Member Customer
 

 

@admin     getting this error

 

 
Posted : 06/22/2024 7:42 am
Page 1 / 2
Share:
[the_ad_group id="312"]