Recipes
Executive News Agent
How to build an Executive News agent
Need to stay updated on the latest news about specific executives? You can build a simple agent that searches Google News for recent articles about an executive and provides you with a summarized report. This guide will walk you through creating an agent that gathers and summarizes news about any executive from the past week.
Step 1: Plan Your Agent’s Workflow
Before building your agent, it’s helpful to map out the steps it will follow:
- Get the name of the executive and their company from the user
- Search Google News for recent articles about that executive
- Generate a summary of the news articles found
- Display the formatted summary to the user
Step 2: Create a New Agent
- In the Builder Tool, click “Create a new agent” and select “Start from scratch”
- Name your agent (e.g., “Executive News”)
- Add a description: “Given the name and Company of an executive, summarize the news about them from the past week”
- Choose a relevant icon
- Add tags like “Sales” and “Marketing”
- Set the trigger to “Manual”
Step 3: Configure User Input
- Add a “Get user input” action
- Enter the prompt: “Enter the name and Company of the executive”
- Save the output as “exec”
Step 4: Set Up Google News Search
- Add a new action and select “Get data”
- Choose the “Google News” connector
- Configure the search to use the executive’s name and company
- Set the time period to “Last 7 days” (you can adjust to 30 days if needed)
- Leave the location blank (or specify if you want news from a particular region)
- Save the output as “news”
Step 5: Create a Summary with AI
- Add a “Use GenAI” action
- Select your preferred model (e.g., GPT-4)
- Write a prompt like: “I am providing you with news articles about an executive. Please review each article and generate a summary that includes: 1) the title of the article, 2) the link to the article, and 3) a brief summary of the content.”
- Make sure to include the variable containing your news articles: “news”
- Save the output as “formatted_news_summary”
Step 6: Display the Results
- Add a “Show user output” action
- Insert the variable containing your formatted summary: “formatted_news_summary”
- Save your agent
Step 7: Test and Debug
- Run your agent from the Run screen
- Enter an executive’s name and company (e.g., “Satya Nadella Microsoft”)
- Review the results
- If needed, go back and refine your prompts or settings
Tips for Improvement
- You can enhance your agent by adding instructions to remove duplicate articles
- Consider adjusting the time period if you need more or fewer results
- Refine your AI prompt to get more specific types of information about the executive
Have questions or need help with your agent? Reach out to our support team or community.