Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / AI Agents & Assistants

AI Agents & Assistants

Stock Sentiment Analysis Agent with Gemini and Web Search

When a chat message arrives, a Gemini research agent searches the web and a sentiment agent scores the stock's sentiment.

What it does

## Set up steps 1. Select the Language Model (LLM): This workflow is pre-configured with Google Gemini. You can select a different model for the agents as needed. 2. Configure LLM Credentials: Ensure that valid credentials for your chosen LLM are correctly set up within your n8n instance. 3. Set Up the SearXNG Connection: Configure the node to connect to your self-hosted SearXNG instance. This enables the agent's web search capabilities. 4. Define the Research Agent's Task: Customize the system prompt for the "Research Agent" to define its role, instructions, and how it should conduct its research. 5. Define the Sentiment Analysis Agent's Task: Adjust the system prompt for the "Sentiment Analysis Agent" to specify how it should analyze the information provided by the Research Agent. 6. Test the Workflow: Use the built-in chat interface in the n8n canvas to send a message and verify that the agents are functioning correctly.

The steps

  1. When chat message received
  2. get_current_date
  3. web_search
  4. Research Agent
  5. Sentiment Analysis Agent
  6. Gemini 2.5 Flash

Similar automations