Apr 06, 2024 08:59 PM
I’ve made a GPT assistant for e-com clients that can recommend products. This tool is made on make.com. The scenario is made with webhooks, open ai module (convert user query to airtable formula), search airtable records, open ai module (encode formula to URL) and airtable make an api call module.
Everthing works except the api module. I believe it's the URL because I have given my PAT every scope, connected it to the base, and have correctly connected it in make.com.
The api module is a get request and I have used the list records url from the api documentation.
I have tried these two forms of URL encoding and still no luck:
v0/appBUitd0yNopP1w7/Imported%20table?maxRecords=3&view=Grid%20view&filterByFormula=AND%28%7Bcolour%7D%20%3D%20%27Blue%27%2C%20%7BCategory%7D%20%3D%20%27Sling%20Bag%27%29
https://api.airtable.com/v0/appBUitd0yNopP1w7/Imported%2520table%3F?filterByFormula=AND(%7Bcolour%7D...
Any help would be greatly appreciated, thanks
Apr 06, 2024 09:28 PM - edited Apr 06, 2024 09:29 PM
The Airtable API URL Encoder Tool will help you, but you are actually doing it the hard way by writing your own HTTP requests.
Make has its own native Airtable modules for you to use, which don’t require you writing any of your own requests at all.
For example, to filter by formula, just use the Airtable Search Records module.
For additional Make training resources, check out this thread: https://air.tableforums.com/t/make-com-basic-navigation-tips/277
And I also give live demonstrations of how to use Make in many of my Airtable podcast appearances here: https://www.youtube.com/playlist?list=PLqssva4liHRwHhQIpTXekG8WObEoyC2F1
p.s. If you’d like to hire an expert Airtable consultant to help you with anything Airtable-related, please feel free to contact me through my website: Airtable consulting — ScottWorld
Apr 06, 2024 11:11 PM
What's the error you get? Could you provide screenshots of your error messages and setup?
I tested the "filterByFormula" param and it works fine actually
Apr 07, 2024 12:45 AM
I kept getting a 403 error
Apr 07, 2024 01:02 AM
Hi Scott thanks for your reply.
I should have provided more context and screenshots. This is my make scenario and the photos show the set up of each module in order. Webhooks gets user query. First open ai module converts it to an airtable formula. First airtable module uses the formula from first open ai module to find product right for user
I have used the second open ai module to try the standard way of URL encoding and I tried modeling off the airtable url encoding tool.
Here is a test run I did.
How can I fix the error in the last step?
Apr 07, 2024 01:03 AM
I have more context in my reply to Scott