I have an app that suggests kids activities to parents. I’d like to set up a feature where AI takes the title of the activity (like play mini-golf) and the zip code of the user and suggests local places for that idea. I don’t think I want this to automatically happen because that would rack up tokens. I was thinking of a button the user could push to get local suggestions. How would I set this up? How do I minimize token use?
I would suggest using the Perplexity API for this, since you would want something real-time.
Assuming you have access to Call API, you would want to construct an API call that includes a prompt (that steers the model to search for [activity name] in [place]) and writes the result into a column of your choice.
If you don’t have Call API, you can try using the Make integration, send the inputs, create a Perplexity module in Make, get the results and write them back using the Glide module in Make.
In both cases, you can use a button to minimize your tokens used.