I’m trying to automate my blog process using AirTable as the DB connected to Make.com. I’m having trouble getting one of the scenarios to work. Here’s what I’m trying to achieve in this scenario, titled Find Research Articles:
Goal:
Automatically search PubMed for recent research articles on a given topic, format each into an APA-style citation, and aggregate them into a single field in Airtable.
Scenario Workflow Breakdown
1. Airtable Trigger: (FUNCTIONING)
Watch records in the blog post table where:
Include Research = Yes
Needs Research = Yes
Status: Ready
This triggers the workflow when a blog post requires citations.
2. HTTP Module (PubMed ESearch): (FUNCTIONING)
- GET request to ESearch endpoint:
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi
Parameters:db=pubmed
term={{Topic}}
(or a more specific query)retmax=4
retmode=json
Output:idlist[]
– an array of PubMed IDs.
3. Iterator (over PubMed IDs): (FUNCTIONING)
- Iterates over the array of PubMed IDs from HTTP#1.
- Each UID becomes a single bundle to process next.
4. HTTP Module (PubMed ESummary): (FUNCTIONING)
- GET request to ESummary endpoint:
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi
Parameters:
db=pubmed
id={{UID from iterator}}
retmode=json
Output: Full article metadata (title, journal, date, authors, etc.)
5. OpenAI Module – Format Citation (FUNCTIONING)
Sends metadata from HTTP#2 into OpenAI with the prompt:
You are an expert scientific citation formatter.
You will receive a JSON array of PubMed article objects under the key "articles".
For each article in order, output an APA‐style citation on its own line:
- Use “et al.” if there are more than 3 authors.
- Italicize journal titles and volume numbers.
- Include a clickable PubMed link via the PMID.
Here is the JSON:
```json
{{7.data.result.`40564122`}}
Output: One formatted citation (text string).
This next part is the problem:
The output is always 4 bundles, not 1
6. Text Aggregator – Combine All Citations (NOT WORKING)
- Module: Tools → Text Aggregator
- Settings:
- Source Module: OpenAI
- Field to Aggregate:
choices.message.content
- Separator:
new line
Output: All citations combined into one text block
7. Airtable – Update Record (NOT WORKING - The Formatted Reference field is overwritten 3 times, so only 1 citation (the last output) remains in the Airtable field, instead of the combined 4 citations.
- Fields Updated:
Formatted References
← Aggregated citationsResearch Complete = Yes
If anyone has ANY suggestions, please let me know. I’m open to any method that will achieve my goals.
Thanks in advance!!
-Shawn