When I joined Pinterest’s Ads ML team in 2019, understanding the ads‑serving funnel felt impossible. There were so many components, intricate infrastructure layers, and advanced ML models I’d never even heard of. Years later, after leaving Pinterest and diving into new projects, I found myself right back in that world, this time with a whiteboard and a fresh question: how would I build an ad‑serving funnel from scratch?
That question sparked the hyperbeam story in late summer 2024. While brainstorming web‑ and product‑search agents, we discovered a strong appetite for hyper‑relevant, on‑the‑fly ad generation. Video and audio ads were an option, but we kept it simple and stuck to text to validate the idea first. Within weeks, we landed our first design partner and learned enough lessons that it’d almost be a crime not to share them. So here they are: eight insights from our hyperbeam journey.
(1) LLMs make ad creative generation sooo easy
A good starting point to build a LLM-powered ad system is to use Retrieval Augmented Generation (RAG). It looks something like:
Input: Message history or query
Function:
Embed input
Retrieve from a list of products through semantic search (cosine similarity) with precomputed embeddings
Choose top one
Prompt inject product details and message history context
Generate ad with an LLM
Output: Ad with embedded links (“integrated ads”)
Within a day, we had already a decent ad copy generator. It only needed a few seconds to generate interesting ads. Here’s a fun example:
User: How should I propose to my partner of 2 years who loves scuba diving?
Assistant: Love is about feeling free, weightless—kind of like being underwater with the one who makes your heart race. If you're planning the perfect scuba proposal, every detail matters. That includes what’s closest to your skin.
Huha creates breathable, zinc-infused Mineral Undies™ and bras designed to move with you—whether you're diving into the ocean or into forever. Made from sustainable tree fibers, they're naturally antimicrobial, luxuriously soft, and made to keep you fresh through life’s biggest moments.
Make this dive unforgettable. Feel amazing, look effortless, and say yes to comfort. Shop now.
From our previous work at Pinterest, we know how much ad ranking and quality can drive engagement and monetization. So, with the creative taken care of, we just needed a way to be paid for driving traffic to these websites.
(2) Finding a good affiliate network was much harder than we thought
If you can find a product inventory online, leverage product search API, or be clever with a web search, you can take the product links and create affiliate links. Easy enough. We came up with mostly free ways to do parallelized web search, so it really came down to finding a good affiliate network to partner with.
Honestly, most affiliate network programs we tried were awful.
Some would have crappy APIs, buggy UIs, wouldn’t support “streaming” use cases, poor pay outs, shitty product inventory, laughably long approval periods, needing to apply to individual merchants, etc. In contrast, individual affiliate programs were not worth the effort; very low SKUs and required custom integrations for each. So the ideal case is finding a partner who has tons of products, brand recognition, and good technical infrastructure. We learned that affiliate partners needed to have these things for our system to work:
An easy way search their product inventory
Automated mechanism to generate an affiliate link
A good payout mechanism (CPC would be ideal)
After applying and going through basically every affiliate network program out there (in the US and beyond), we liked these affiliate networks the most:
Connexity (CPA, CPC). Easy onboarding, great API, very very responsive team, great payout.
AliExpress (CPA). Great API, easy sign up, great product selection, good international coverage.
Amazon (CPA). Great product selection, easy link generation, a lot of publicly available datasets to enrich ad generation.
Sovrn (CPC, CPA). If you can get in and stay in the program, it’s awesome but they are soooo slow to respond.
Rakuten Advertising (CPA). While Rakuten is kind of a pain to apply for each merchant, it’s a REALLY good resource for learning merchants' brand safety requirements.
Cost per Click (CPC) and Cost per Action (CPA) are just different ways that you could earn commission on these platforms. CPC is nice if your audience has lower intent and if it takes a little more to get someone to convert. Because you can start by driving clicks (mid-funnel), then eventually build conversion models. That said, it took us about ~4 months before we saw publisher revenue exceed 1 dollar... You may ask why…
(3) Most users of free agents/chatbots have really low commercial intent.
So, Amazon seemed like an obvious choice to start: easy sign up to their affiliate program, they have tens of millions of products, easy monetized link generation, trusted brand, ok-ish commission, well-maintained APIs, etc. Access to their product advertising API (PA API) has some requirements but I mean, you could also find product searchers through RapidAPI or even product datasets on Kaggle (up to you). Since the new publishers we had didn’t have anything to click, we want to create a baseline.
Starting off with just retrieving links from a web search with each query. At the time (October 2024), we had about 10k users per day to test this out on and randomly sampled 20% to test integrated web search messages. The result? ~2% CTR, which is not too bad. As the novelty wore off, we tested Amazon links instead. The result…1% CTR and no one bought anything! We ran tens of thousands of ads and saw almost no conversions. It was both disappointing and surprising. We notice that when we use ChatGPT ourselves, we often follow its recommendations and act on them—especially for trip planning. We couldn’t understand why our ads weren’t performing, so we needed to find a different strategy.
(4) Engagement models are all you need
After we tanked our CTR with our Amazon experiment in November 2024, we were desperate to get our engagement numbers up, even if it meant losing monetization. Luckily in late December, we got approved by Sovrn after nearly 4 months waiting…we were SO excited to get rolling. Sovrn has a real time bidding system that allows publishers to make commissions via a CPC mechanism. This was perfect. If we could just improve our CTR and click propensity, we would instantly increase our publisher affiliate revenue.
When we first started out, we tried using an agentic system to decide when to place an ad, instructing to do so when there was commercial intent or deepening interest. We found that these commercial intent opportunities didn’t happen as often as we hoped. Our users typically asked about difficult relationship problems, translation questions, religious question, or asking for help on homework. The agent struggled to find good opportunities to place ads. The fill rate was so low (because of lesson 3 - low intent). We had to be more creative. We were getting some clicks - not a lot, maybe tens of clicks a day on mostly non-ad links retrieved from web searching. Obviously, our system evolved as we got more learnings which we will chat more about below.
Instead of leaving it up to an agent to decide, we took a traditional ML approach and built engagement models with the small data we had, hoping to find more nuanced cases. With every message, we would estimate the user’s likelihood to engage with any links (before we create an ad slot) and only take those with high propensity to serve ad. Sure enough, with every retraining and model improvement launch, we would get 20-30% gains in CTR. Interestingly, the improvements were increasing click propensity, meaning new people were beginning to click. This suggested to us that by simply finding the right moments, more people would be inspired to engage with our content and form clicking habits. We got very good at this, eventually driving our CTR from 0.67% to 4.42% within 3 months.
(5) It’s crazy hard to get the economics to make sense using just affiliate marketing
In February 2025, we talked to all our publishers and basically explained that while we were able to make massive improvements in engagement, we hadn’t made much progress on monetization. Some publishers' ad revenue was less than a dollar still after months of working with us (even after the Sovrn integration). They were surprised and somewhat disappointed, but they still stuck with us.
While working through these challenges, we reached out to other companies in the space like nex.ad, Koah Labs, and Kontext to learn how they approached the problem. While these companies moved on to direct buy, we found that we were the only one that continued researching how to make affiliate programs work.
It was very clear that the immediate monetization for direct media buying would far exceed what we could achieve with affiliate marketing, considering the low commercial intent. Our rationale was that if we could make affiliate marketing work, we could have higher fill rates, focus more of our attention on publisher success and growth, and achieve scale faster than other companies in the space. That said, the CPCs for direct media buy could be like $0.35-0.75/click whereas we were getting somewhere around $0.02/click. To compete, we would need to launch changes that would 20x our monetization for publishers. or find a way to build a differentiated narrative amongst our peers. So let’s get into it…
(6) We were surprised by what ad format users liked
In April 2025, we started serving hundreds of thousands of ads per month. With the new volume and scale, we were excited to rapidly test ideas. So we built our own A/B framework and began testing any idea we could think of to move CTR and monetization. Everything from the length of messages, more emojis, deduping, ad formats, intent models, re-ranking models, web search engines, retrieval pipelines, ad networks, SO MUCH. We tested at least 100 experiment variations over the past 3 months. But, two types of experiments we ran really surprised us: (1) testing ad format and (2) modifying the LLM answer (see Lesson 7).
Let’s talk about ad format. As part of our testing period with publishers, we asked for full control of not only the ad placement but also the LLM answer accompanying it to understand the relationship between the two. Different formats (of which there are many: Links in Answers, a short blurb with a link, links below an answer, or just a straight list of links). We found that the answer with a list of links to be the most performant for engagement and monetization. We tested the number of links and arrived somewhere between 3-5 as the ideal amount (at least 2 slots for organic web searches and 1-3 ad slots depending on intent). Here’s a sample output:
User: Hey what’s up? What should I do in Seattle?
Assistant: Hi! Exploring Seattle offers many options. You could visit the iconic Space Needle for stunning city views, explore Pike Place Market for fresh seafood and unique shops, or take a ferry ride to enjoy the waterfront scenery. For some outdoor fun, hike in Discovery Park or stroll through the Seattle Aquarium. If you love arts, check out the Museum of Pop Culture or the Chihuly Garden and Glass exhibit. Interested in outdoor adventures or cultural experiences today?
[1] The 15 best Seattle attractions to visit - Time Out https://api.hyprbm.com/timeout?id=db6bcf0a3eb8
[2] The 16 Best Things to Do in Seattle - Condé Nast Traveler https://api.hyprbm.com/cntraveler?id=7339523fc944
[Ad] Sightseeing & Tours in Seattle - Deals Up to 70% Off - Groupon https://api.hyprbm.com/groupon?id=4a8408590ecc
About a month or so later, we noticed that Perplexity had nearly the same format in the WhatsApp surface. So there had to be some merit to this style.

We also tried experimenting with re-rankers to initially retrieve based on relevance and then re-rank based on utility (a weight average between predicted engagement, estimated payout, and relevance). But, we found that our audiences were incredibly sensitive to relevance, so we had to rollback the experiment. It was surprisingly that we didn’t have the same level of wiggle room for optimization in ranking as other social platforms. Chatting with an LLM seemed to have similar expectations of search, rather than a home feed, which is more discovery oriented. In the end, we opted to run both semantic retrieval of our product link database and a web search simultaneously, yielding about 3-5 links with every turn (with ~86% fill rate).
(7) The AI’s answers directly drive user to engage on links
After the release of Deepseek’s R1, we became fascinated by the idea of verifiable rewards. The way we see it is that marketing is a really good test case. If a person clicks or converts based on what an LLM says, there’s a verifiable event that can be used to kick off a GRPO trainer. But before we invest in deploy a more complicated and costly model architecture, we want to see if even small change to the LLM answer could increase engagement. So, we took a note from OpenAI and just added a relevant question to the end of the LLM answer along with some helpful links (from an advertiser, abebooks).
User: my boyfriend broke up with me :(
Assistant: I'm really sorry to hear about your breakup. It's completely normal to feel hurt and overwhelmed in this situation. Take time to process your emotions and lean on friends or family for support. Remember, healing takes time, and this experience can lead to personal growth. If you'd like, I can share some strategies for coping or ways to move forward. How have you been managing your feelings so far?
Here’s some books that could help:
[1] The Breakup Bible: The Smart Woman's Guide to Healing from a Breakup or https://api.hyprbm.com/abebooks?id=a29c57d63fc6
[2] Self Heal By Design,By Barbara O'Neill, Sustain Me,The 9 - AliExpress https://api.hyprbm.com/aliexpress?id=8e0e14f370ee
[3] 100-Day Mental Wellness Journal - Guided Diary for Self-Care https://api.hyprbm.com/aliexpress?id=9b49bafe3910
We were blown away that something so simple could increase our engagement and monetization by 40%. We were so pumped and began a slew of experiments modifying the LLM response to try different lengths, emojis, spacing, styles, language adaptation, slang, disfluencies, etc. - through clever prompt engineering. Each adding or subtracting about 10-20% of engagement with each test. In April 2025, we doubled our CTR, and tripled our publisher revenue. Our click-to-action conversion rates on Sovrn were like 25-30%.
If you must know, we did try throwing our engagement data into a version of Deepseek’s r1 training strategy. We thought maybe we could build some kind of hyper-persuasive LLM. All I can say is that the results on live traffic were insane. But, we’ll have to save that story for a future post.
(8) Bot attacks really, really, really suck and can be hard as platform to solely defend it
In mid May 2025, one of our publishers got hit with a massive bot scraping attack. For some reason, a bunch of masked headless browsers began clicking on every link and spamming questions. They somehow figured out how to bypass the publisher’s authentication and spoof fake accounts. We realized this a few hours after the attack began. We got an alert that our click traffic volume skyrocketed 100x and our users changed from 90% mobile to 99% desktop. At 4 am in the morning, we made the hard call to completely shut down our ad generation service and disable our redirect to prevent meaningless clicks hitting Sovrn servers. After a couple sleepless nights, we work crazy hard to build protections in our redirect and bot algorithms to curtail misuse and to re-activate the service. But sadly, we were shut down by Sovrn shortly after going back online.
It was so frustrating. Admittingly, we relied too heavily on our publishers to protect us against spam/bots without building guards ourselves. Luckily, it came at a moment where we were testing the monetization performance of the Sovrn Affiliate Network vs Connexity. We’re currently still testing here but it’s pretty clear the pay out for Connexity is higher.
Where did we land?
Today, we’re close to 6-7% CTR (10x), 10% ad load, and hitting CPCs of ~$0.25/click (27x) with millions of messages coming in per month. Every metric painstakingly earned through precise experimentation and clever modeling techniques. With more and more conversions, we can train new intent models and move users full funnel more effectively. More soon!
What’s next?
We believe the technology we created can be useful beyond the ads use case, especially for solving cold start retrieval problems or conducting more intelligent web search. We put a lot of hard work into perfecting it, so we’d love people to try it out.
With that, we plan to open source our work, allowing others to expand on the technology. Stay tuned for the next post, which will outline our tech and how to use it locally! We’re excited and if you are too, leave a comment or drop us a line. We’d love to help.