Forum in maintenance, we will back soon 🙂
How to show amazon's products about dynamic content on web?
Hi everyone!
Â
I am developing a web application, which displays different results and content depending on the users input data. Similar to Hook Generator from our master Hasan.
Â
I would like to know how insert or if exist a plugin or anyway to insert Amazon Affiliate products according to the results or response of our AI tool according to the parameters entered by the user.
Â
For example:
- If a user asks for the best running shoe or brands, the result will be: NIKE, ADIDAS, PUMA; display this type of running shoe or brands.
- On the other hand, if another user asks: best shoes for a tux formal, display this type of running shoe or brands.
I will greatly appreciate your comments, solutions, ideas and contributions. 😉Â
Â
Hello @davidarce, let's break it down first.
So, the result tool should take a type of clothing from the user and displays potential affiliate links that they can buy from?
If so, you'll need to have a ton of data stored in a database for types of clothes and for each one you should have an affiliate link corresponding to it, and the tool gets 3-4 top results with respect to what the user is searching for.Â
And, if the types of clothes the user is searching for you don't have it in your database with an affiliate link, it would search the web and get 3-4 top results, but these wouldn't be affiliate links, just normal links to the products.
idk if amazon has a built-in feature that can turn links automatically to affiliate links, if so the process would be much easier where you wont need a database, everytime the user searched for something it gets the results and turns the links to affiliate links.
Hi friend, thanks!
First, it is a good idea!
I created a prototype that is somehow similar, where users interact with AI bot, and it recommends products with affiliate links, check here: https://youtu.be/SajkR4vyUco?si=FdWSAEb6M1pxwhBD
to integrate with a WordPress tool, you will need somehow an advanced approach,
- if Amazon has an API, you can create an agentic workflow that picks the URL based on the productÂ
- or you will need to collect a list of products with the URL, and use them as input with the language model to pick from.
I know both might seem complex, I will try my best to create a tutorial on this. but I need to do some testing first.
Â
Â
Â
Hi @husein 😎Â
Â
That's right! Amazon has an affiliate system where we can convert product links into affiliate links through tags to track each visitor or sale and assign commissions per sale.
Â
Â
It also gives us the option to use its API to update images, prices, etc.
Â
It seems to me that the biggest challenge is being able to generate unique affiliate links based on the keywords/results of each user in our AI tool.
Â
Â
@admin Hi Hasan
Â
Thanks for your reply!
Â
Posted by: @adminI created a prototype that is somehow similar, where users interact with AI bot, and it recommends products with affiliate links
This is of my total and absolute interest. And yes! Amazon give us access to their API.
Â
I'll definitely keep an eye out for that tutorial.
Â
@davidarce you might want to consider caching any polled data to speed up the results. I would probably use Python with either Django or Flask (this would be my preferred library) but you could just use FastAPI and call the endpoints from within WordPress. With HTMX you can have Active Searches, continuous scrolling, etc. Nice idea, now I'll need to think about doing myself a website.😏
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@davidarce, you can do anything with Make, but it will also require some custom development in some places.
I want to know if the affiliate products you promote are counted and limited or if you are picking dynamically based on user input.Â
If it is limited to specific products, the idea will be way easier.
If it is dynamic and you want to fetch products based on user input and AI results. Then, the approach will be totally different. You will need to create an Agentic workflow, where the AI will fetch the proper affiliate links from Amazon API based on the result it came up with.Â
It's not so complicated, but it requires some custom development.
@admin with Amazon Affiliate they provide an API method to search for keywords and return the results. I think this is what @davidarce is asking about. The results contain the direct link to the product so you can redirect to a click product.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
Thank you for your valuable responses @admin @ssadvisorÂ
The Amazon API allows us to access prices, descriptions, titles, photos, and availability of the thousands of products on the platform.
Posted by: @adminpicking dynamically based on user input.Â
Exactly!
The traditional method is to manually choose the product and generate the affiliate link from the same platform.
I think my idea is a step up. Generate a comparison table of 3 or 4 products from the keyword in the response of my AI tool. For example:
User 1 look for: running shoes / IA tool response: adidas, puma, nike / Script with API: search on amazon adidas, puma, nike with my affiliate link.
User 2 look for: shoes to go to a party / IA tool response: shoes1, shoes2, shoes3 / Script with API: search on amazon shoes1, shoes2, shoes3 with my affiliate link.
User 3 look for: best camping tents / IA tool response: tent1, tent2, tent3 / Script with API: search on amazon tent1, tent2, tent3 with my affiliate link.
User 4 look for: ladies watches / IA tool response: watch1, watch2, watch3 / Script with API: search on amazon watch1, watch2, watch3 with my affiliate link.
.
.
.
And display their images, prices, etc in a table. All this under the same tool, at the same time, several users.
Maybe this can help:
https://affiliate-program.amazon.com/home/textlink/general?ac-ms-src=ac-nav
With this amazons tool, we can build an affiliate link that redirect to search result on amazon:
<a target="_blank" href="https://www.amazon.com/gp/search?ie=UTF8&tag=AFFILIATEID&linkCode=ur2&linkId=ca65e1518c005b9fc333ac213739818c&camp=1789&creative=9325&index=apparel&keywords=watch for woman">watches</a>
The idea is to create links that automatically change the keyword, based on the user's search keywords. Keywords that we could extract from a drop-down list.
apparel&keywords=watch for woman
apparel&keywords=smartwatch
apparel&keywords=watch for running
apparel&keywords=omega watch
Â
Â
I keep researching and learning a lot.
I think about my last post, and discover something interesting testing two different products (or keyword from the user) and I use the amazon tool than allow us create link to search result on Amazon:
<a target="_blank" href="https://www.amazon.com/gp/search?ie=UTF8&tag=autocheck-20&linkCode=ur2&linkId=e3f27e9715270f45876d90e52448c63b&camp=1789&creative=9325&index=apparel&keywords=watch for woman">watches</a>
Â
<a target="_blank" href=" https://www.amazon.com/gp/search ie=UTF8&tag=autocheck-20&linkCode=ur2&linkId=ceae68135f4502ee544832ff43f520fd&camp=1789&creative=9325&index=apparel&keywords=smartwatch">watches</a>
I wonder if that "linkID" will affect the assigned commissions.Â
And if so, I am convinced of @admin Hasan's suggestion... create an AI agent that makes this selection of products one by one, generates the affiliate link and displays it on the screen, coinciding with the user's search.
Thanks for sharing this.
We can design the system this way:
The user enters a query for example "best affordable microphone"
The AI using Google search will fetch the top 5-10 results from Google comparing the best microphones.
The AI will find the best microphones by reading and analyzing the page content.
The AI using Amazon's API will fetch and construct the Affiliate link and return back to the user a list of microphones with their data
Â
Another approach:
The user enters a query, for example, "best affordable microphone"
the AI will search Amazon directly to get the top 10 microphones, read the pages, compare the specsÂ
then fetches the Affiliate links with Amazon's API and returns back to the user the list of microphones with the links
Â
---
Â
after that, we can create a simple UI for this where users enter a query and get back a list of the products with their details
Â
It is an interesting project!
Â
Am I missing something? Is there something else?
Â
Amazing ideas! And both approaches are correct.
I understand that the AI will give us the result based on the search parameters/keywords/query that the user has entered. And that is what Amazon will look for to show them as an answer.
My niche and why I want to apply it is automotive parts.
For example on the front-end I have:
A form where the user chooses his car:
TOYOTA / COROLLA / ENGINE 1.8 / 2016
And a drop-down list with different parts:
FILTERS / LIGHTS / WINDSHIELD WIPER / OIL / BATTERY
When the user chooses the part of interest, then the AI (backend) will search and provide an answer and search Amazon for products related to the answer, showing them to the user.
@davidarce Yes it's a very good approach, then as you said the back-edn will search for top products construct there corresponding affiliate links and show them to the user.
Plus, make sure to integrate a cache workflow where you save some results gotten by other users which will make the tool faster as @ssadvisor mentioned.
-
Hook Generator output Issue
7 months ago
-
Publish python tools in wordpress
9 months ago