icp_agents/integrations/hackathons/top live news article summariser
2024-09-15 15:38:35 +03:00
..
2024-09-15 15:38:35 +03:00
2024-09-15 15:38:35 +03:00
2024-09-15 15:38:35 +03:00
2024-09-15 15:38:35 +03:00
2024-09-15 15:38:35 +03:00

🤖 Top News Synopsis: Country-Specific News Summaries at Your Fingertips 🤖

1. 🖊️ Description

This project provides live summaries of the top news articles from a specified country. It works by integrating two APIs:

2. 🔄 Workflow

The process begins by prompting the user for a country name. It then utilizes the News API to retrieve the top article URL and feeds it into Rapid API's extract news API for scraping and summarizing.

3. ⚙️ How to setup the project in Agentverse.ai and start chatting with DeltaV ??

  • Obtain API keys for both News-API and Rapid-AI's Article Data Extraction and Summarization

  • Go to Agentverse Agents, select the skeleton body, and name it scrapper and summarizer. Copy and paste the code from scrapper and summarizer.py in the agents subfolder. Repeat this process for top_country_article_url_retreiver_agent and top_country_article_url_retreiver_agent.py.

  • Don't forget to replace your API keys in the agents. After creating the two agents, click on the run button.

  • Create services for agent communication:

    • Navigate to services and create a new service for scraper and summarizer agent:-

      Screenshot 2024-03-31 at 7 09 46 PM Screenshot 2024-03-31 at 7 09 50 PM
    • Repeat the same process for top_country_article_url_retriever_agent.

      Screenshot 2024-03-31 at 7 12 24 PM Screenshot 2024-03-31 at 7 12 26 PM
  • Ensure to use the same service group for agent communication. Once saved, the agents are ready for interaction on the DeltaV platform.

  • Once click on save buttoon are agents are ready. It's time to talk with our agents using deltav platform. Make sure that to use same email acount for everything what we are doing.

4. 🧪 Testing the agent with DeltaV

  • Go to the DeltaV platform, keeping the toggle on developer mode.

  • Navigate to the registered service, in this case, scrapping.

    Screenshot 2024-03-31 at 9 11 33 PM Screenshot 2024-03-31 at 9 11 41 PM
  • Interact with the agent by typing:

    Give me the today's top most article summary for the specified country?
    

Then you will see the output as follow:- Screenshot 2024-03-31 at 10 20 20 PM

  • Follow the prompts to select the country and retrieve the top article URL, then view the summary. Keep in mind that the answer may vary depending on the time interval due to the live nature of the News API.

  • Resultant Output will look like something!!

    Screenshot 2024-03-31 at 10 20 27 PM