Overview
In this tutorial, you’ll build a News Aggregator Project that collects articles from multiple sources, summarizes them, and outputs a daily digest. You’ll learn to:- Create a Project from scratch
- Build Actions for data collection
- Design Flows for orchestration
- Configure an Agent for summarization
- Test and deploy your system
Step 1: Create the Project
- Click the Home icon in the Top Bar
- Click New Project
- Name it
News Aggregator
- Add description:
Collects and summarizes news from multiple sources
- Click Create
Step 2: Build the fetch Action
Let’s create an Action to fetch news from an API:- Open the Chat Panel
-
Say: “Create an Action called
fetch_news
that takes a source URL and returns a list of articles” -
Triton will generate the Action with:
- Input:
source_url
(string) - Output:
articles
(list of dicts) - Basic HTTP request logic
- Input:
-
Review the generated
Action.py
in the Properties Panel - Adjust if needed (add error handling, rate limiting, etc.)
Step 3: Create the aggregation Flow
Now build a Flow to call the Action for multiple sources:- Ask Triton: “Create a Flow that takes a list of news sources and calls fetch_news for each one”
-
Triton will create:
- Input node with
sources
parameter - Loop or parallel execution of
fetch_news
- Output node with combined
articles
- Input node with
- Double-click the Flow node to inspect the structure
- Verify the connections are correct
Step 4: Add a summarization Agent
Create an Agent to summarize the collected articles:-
Say: “Create an Agent called
news_summarizer
that takes articles and creates a concise daily digest” -
Triton will configure:
- System prompt for summarization
- Input/output schema
- Model selection (GPT-4 or Claude recommended)
-
Review and refine the system prompt:
Step 5: Connect the components
Wire everything together:-
Create a main Flow called
daily_news_digest
-
Structure it as:
-
You can do this via Triton or manually:
- Drag components from the Agent Toolbox
- Connect them with edges (click and drag from output to input ports)
- Configure each node’s parameters
Step 6: Test with sample data
Execute your system:-
Select the
daily_news_digest
Flow - Open Properties → Execute
-
Enter test payload:
- Click Execute
- Monitor execution in real-time
- Review the output digest
Step 7: Debug and iterate
If something goes wrong:- Check execution logs in Properties → Executions
- Verify each component’s input/output schema
- Test Actions individually before running the full Flow
- Ask Triton: “Why did the execution fail?”
- API authentication missing → Add API keys to Global Variables
- Timeout errors → Adjust Action timeout settings
- Empty results → Verify API endpoints are accessible
Step 8: Deploy as API
Make your Project accessible:- Click Deploy in the Top Bar
- Select deployment target (e.g., production)
-
Configure:
- Endpoint path:
/daily-digest
- HTTP method: POST
- Authentication: API key required
- Endpoint path:
- Click Deploy Now
- Copy the generated endpoint URL
-
Test with curl:
Step 9: Schedule daily execution
Set up automatic runs:- In the Project Properties, go to Triggers
- Click Add Trigger
- Select Schedule
-
Configure:
- Schedule: Daily at 6:00 AM UTC
- Payload: Your default sources list
- Notification: Email on success/failure
- Save the trigger
Next steps
Now that you’ve built a complete Project:- Enhance it — Add sentiment analysis, language detection, custom formatting
- Monitor it — Set up alerts for failures or anomalies
- Share it — Invite team members to collaborate
- Extend it — Create variations for different news categories
Tips for success
Start simple — Build and test each component individually before connecting them
Use Project Variables — Store API keys, base URLs, and configuration centrally
Save test payloads — Keep example inputs for regression testing
Version your work — Use meaningful names and descriptions for components
Iterate with Triton — Don’t hesitate to ask for modifications or explanations