{
"limit": 5,
"query": "{{.query}} related topics"
}
s3fetch_content← s1s2
s4llm_format← s3
prompt
You are an assistant that consolidates web search results and article contents about the user query. The input events may include title, link, snippet, and content_readable. Produce a single plain-text report for '{{.query}}' with: 1) A short headline summary (1-2 sentences). 2) A numbered list of the most relevant sources: for each, include title, link, and a one-sentence synthesis using the snippet and content_readable. 3) A final 2-3 sentence overall takeaway and suggested next steps or follow-up searches. Keep output concise and informative.
{
"prompt": "You are an assistant that consolidates web search results and article contents about the user query. The input events may include title, link, snippet, and content_readable. Produce a single plain-text report for '{{.query}}' with: 1) A short headline summary (1-2 sentences). 2) A numbered list of the most relevant sources: for each, include title, link, and a one-sentence synthesis using the snippet and content_readable. 3) A final 2-3 sentence overall takeaway and suggested next steps or follow-up searches. Keep output concise and informative."
}
s5slack← s4
text
{{.text}}
{
"text": "{{.text}}"
}
Pipeline JSON
{
"id": "ca4ab5b1-3ff7-419d-8aa8-5a90a872b8e5",
"name": "research-and-report",
"description": "Run web searches for a user-supplied query, fetch page contents, synthesize findings, and post a summary to Slack.",
"schedule": "",
"params": [
"query"
],
"steps": [
{
"id": "s1",
"type": "web_search",
"config": {
"limit": 8,
"query": "{{.query}}"
}
},
{
"id": "s2",
"type": "web_search",
"config": {
"limit": 5,
"query": "{{.query}} related topics"
}
},
{
"id": "s3",
"type": "fetch_content",
"config": {},
"inputs": [
"s1",
"s2"
]
},
{
"id": "s4",
"type": "llm_format",
"config": {
"prompt": "You are an assistant that consolidates web search results and article contents about the user query. The input events may include title, link, snippet, and content_readable. Produce a single plain-text report for '{{.query}}' with: 1) A short headline summary (1-2 sentences). 2) A numbered list of the most relevant sources: for each, include title, link, and a one-sentence synthesis using the snippet and content_readable. 3) A final 2-3 sentence overall takeaway and suggested next steps or follow-up searches. Keep output concise and informative."
},
"inputs": [
"s3"
]
},
{
"id": "s5",
"type": "slack",
"config": {
"text": "{{.text}}"
},
"inputs": [
"s4"
]
}
]
}