Internet Search Workflow
Comprehensive internet search workflow that searches for a given topic using multiple search engines and returns consolidated, processed results
Workflow Information
ID: internet_search_v1
Namespace: default
Version: 2.0.0
Created: 2025-07-07
Updated: 2025-07-07
Tasks: 2
Quick Actions
Inputs
| Name | Type | Required | Default |
|---|---|---|---|
search_topic |
string | Required | None |
max_results |
integer | Optional |
5
|
Outputs
| Name | Type | Source |
|---|---|---|
search_results |
string | Search results |
Tasks
search_tavily
mcpNo description
process_results
scriptNo description
YAML Source
id: internet_search_v1
name: Internet Search Workflow
tasks:
- id: search_tavily
type: mcp
tool_name: tavily-search
deployment_id: pod-3ajjeb40
tool_arguments:
query: ${search_topic}
topic: general
max_results: ${max_results}
search_depth: advanced
include_raw_content: false
timeout_seconds: 60
- id: process_results
type: script
script: "import json\nimport os\n\nsearch_query = os.environ.get('search_topic',\
\ 'Unknown')\n\n# Print debug info\nprint(\"Debug: Looking for search results...\"\
)\nfor key in os.environ.keys():\n if 'search_tavily' in key:\n val\
\ = os.environ[key]\n print(f\"Found: {key} = {val[:50]}...\")\n\n# Try\
\ to get result\nresult_data = None\nresult_var = os.environ.get('search_tavily.result',\
\ '[]')\n\ntry:\n result_data = json.loads(result_var)\n print(f\"Parsed\
\ result_data: {type(result_data)}\")\nexcept:\n print(\"Failed to parse result\
\ data\")\n result_data = []\n\nresults = []\n\nif result_data and len(result_data)\
\ > 0:\n for item in result_data:\n if 'text' in item:\n \
\ text = item['text']\n print(f\"Processing text of length: {len(text)}\"\
)\n \n # Simple parsing\n sections = text.split('Title:\
\ ')\n for section in sections[1:]:\n lines = section.split('\\\
n')\n title = lines[0] if lines else 'No title'\n \
\ \n url_found = ''\n content_found = ''\n \
\ \n for line in lines:\n if line.startswith('URL:\
\ '):\n url_found = line[5:]\n elif\
\ line.startswith('Content: '):\n content_found = line[9:200]\n\
\ \n if title and url_found:\n \
\ results.append({\n 'title': title,\n \
\ 'url': url_found,\n 'snippet': content_found,\n\
\ 'source': 'Tavily'\n })\n\noutput\
\ = {\n 'search_query': search_query,\n 'total_results': len(results),\n\
\ 'results': results\n}\n\nprint(f\"__OUTPUTS__ {json.dumps(output)}\")\n"
depends_on:
- search_tavily
inputs:
- name: search_topic
type: string
required: true
description: The topic or query to search for
- name: max_results
type: integer
default: 5
required: false
description: Maximum number of results
outputs:
search_results:
source: process_results
description: Search results
version: 2.0.0
description: Internet search workflow using Tavily - clean version
| Execution ID | Status | Started | Duration | Actions |
|---|---|---|---|---|
47c2ebd8...
|
COMPLETED |
2025-07-07
10:50:38 |
N/A | View |
a498d536...
|
COMPLETED |
2025-07-07
10:50:06 |
N/A | View |
8018de24...
|
COMPLETED |
2025-07-07
10:49:25 |
N/A | View |
12ea0de3...
|
COMPLETED |
2025-07-07
10:48:35 |
N/A | View |
0217313b...
|
COMPLETED |
2025-07-07
10:47:38 |
N/A | View |
139e3c5f...
|
COMPLETED |
2025-07-07
10:46:28 |
N/A | View |
fa7b7d8a...
|
COMPLETED |
2025-07-07
10:45:20 |
N/A | View |
a60f2af5...
|
COMPLETED |
2025-07-07
10:44:35 |
N/A | View |
422c4e6f...
|
COMPLETED |
2025-07-07
10:40:08 |
N/A | View |
fd49f8cf...
|
COMPLETED |
2025-07-07
10:39:18 |
N/A | View |
db505e63...
|
COMPLETED |
2025-07-07
10:38:28 |
N/A | View |