and an API key. The free tier provides 100 searches per month. The next rung on the ladder is $50/month for 5,000 searches per month. There also are many search services available that do this.
If you’ve never created a pack before, this is the perfect time to learn. Simply copy this source into a new pack created from scratch. Overwrite the few lines of code with this copied code, and build it. It’s ready to be used in any document.
The Pack contains only one formula - serpAPI() which requires two parameters. The first is your API credentials from SerpAPI and the second is the query.
One of the challenges is ensuring the search results are prepared in a form that can be reliably injected into Coda AI prompts. The Pack formula does this just before passing the search results back to Coda. This transformation is dependent on the JSON structure returned from SerpAPI. If you remix this Pack with a different search interface, you will need to perform a similar transformation to avoid overrunning the current limitations of the Coda AI prompt window.