Forum in maintenance, we will back soon 🙂
@mubbay If you're reffering to the last video, for it to work you need to generate your Own Gemini key and add it to your code.
And you need to change all URLs with your own URL.
@google-rashidtoor, you can request a discount here: https://learnwithhasan.com/request-discount/
@husein I have done all these steps one tool is working but I want to add more tools on same WordPress site
@google-rashidtoor Great, glad it worked!
To add multiple tools, you're gonna need to create multiple functions inside the code snippet you already made (each function for a tool) or a code snippet for each tool.
Then, build a landing page for each tool, and call the corresponding code snippet from it.
@husein thanks for assistance I will try
@google-honestearning you change the code to function for whatever you desire. Be sure to change the function names for each module.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@google-honestearning Each tool needs a function, so you create multiple code snippets for each tool. Or one code snippet that includes a function for each tool. (each function must have a unique name)
After that, you connect your functions to the tools' UIs.
@ssadvisor Iam getting this error "Cannot redeclare setApiKey() (previously declared in C:\Users.......wp-content\plugins\insert-headers-and-footers\includes\class-wpcode-snippet-execute.php(287) : eval()'d code:3)
@husein in codes snippet can you tell me which function name i have to change when i want to create multiple tools? because in snippet there is lot of function is showing
@google-honestearning you need to change the setApiKey function name. Something like set setGeminiApiKey then where setApiKey is used you change it to setGeminiApiKey.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@google-honestearning you can name them whatever you want it's just that you cant have 2 functions with the same name, because it would cause errors.
yes admin will defininately create a video about this.
@jayden your response is somewhat spammish and doesn't add any benefit to the discussion. Be careful with your comments that it adds value to the discussion otherwise you will get banned from the community.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
No one is telling why it is getting the error "Oops! Something went wrong. Please try again."
Is that API Key Paid or any further reason? let me know if anyone got this.
@google-techsprohub Did you try to run the backend of your tool and test if its really working before connecting it to the UI? If not try doing that and from there we can help you.
- yes, you need to pay for tokens to use the API
- there are many reasons and many answers to the error.
- there have been many responses to this same issue; did you do due diligence research in the forum?
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack