n8n Just Made AI Agents 10x Smarter: NEW Perplexity Node

AI WorkshopAbout 3 min readJun 12, 2025Watch original
THE SUMMARYAI-generated

Key Concepts

  • NAN (n8n)
  • Perplexity AI
  • AI Agents
  • API Key
  • Workflows
  • AI Automation
  • HTTP Request Node
  • CRM (Customer Relationship Management)
  • Live Data
  • Data Scraping

Perplexity AI Integration with NAN (n8n)

Introduction

The video discusses the integration of Perplexity AI with NAN, enabling AI agents to access real-time web data, provide sources, and reduce inaccuracies. This integration is a significant update for building intelligent AI automations.

Step-by-Step Guide to Adding Perplexity to NAN

  1. Update NAN: Ensure you are using version 1.97 (stable) or 1.98 (beta) or later.
  2. Add Perplexity Node: In the NAN workflow, add a "Perplexity" node. This node should be visible when searching for it in the node list.
  3. Create Credentials: Within the Perplexity node, create new credentials by entering your Perplexity API key.
  4. Obtain API Key:
    • Log in to your Perplexity account.
    • Navigate to "My Account" and then "API Keys."
    • Create a new key and copy it.
    • Paste the API key into the NAN credentials.
    • Note: A Perplexity account with a balance (e.g., $5) is required.
  5. Model Selection: Choose from available Perplexity models like Sonar or Sonar Pro.

Integrating Perplexity with AI Agents

  1. Add AI Agent Node: Add an "AI Agent" node to your NAN workflow.
  2. Select Chat Model: Choose a chat model (e.g., OpenAI 4.0 Turbo). Note that the Perplexity node is not a chat model itself.
  3. Add Perplexity as a Tool: In the AI Agent node, add Perplexity as a tool.
  4. Configure Tool: Select the Perplexity tool and choose a model (e.g., Sonar).
  5. Parameter Definition: Enable "Let the model define this parameter" to allow the AI agent to automatically handle parameters.

Example Use Case: Researching News in Los Angeles

The video demonstrates a use case where the AI agent researches current news in Los Angeles and provides citations for news articles.

  1. User Query: The user inputs a query like "Research current news in Los Angeles and provide the citation of each news article."
  2. Chat Model Processing: The OpenAI chat model interprets the query.
  3. Perplexity Tool Usage: The AI agent uses the Perplexity tool to fetch relevant news articles and their sources.
  4. Output: The AI agent provides the latest news with citations.

Advanced Use Cases and Benefits

  • Real-time Data Scraping: Perplexity can be used to scrape live data from the internet, such as LinkedIn profiles or customer information.
  • CRM Updates: Automate CRM updates by summarizing customer interactions and researching customer information using Perplexity.
  • Replacing HTTP Request Node: The Perplexity node simplifies workflows by replacing the need for manual HTTP requests to the Perplexity API.
  • Access to Live Internet Data: The integration provides AI agents with access to live internet data, enhancing their capabilities.

Example: News Article Workflow (Before and After Perplexity Node)

  • Before: The workflow involved using an HTTP Request node to access the Perplexity API, requiring manual configuration of authorization, API key, model selection, and prompt definition in the JSON body.
  • After: The Perplexity node simplifies this process by allowing direct access to Perplexity resources without manual configuration.

Conclusion

The integration of Perplexity AI with NAN significantly enhances AI automation by providing access to real-time web data and simplifying workflows. This enables AI agents to perform tasks such as research, data scraping, and CRM updates more efficiently and accurately. The speaker encourages viewers to explore the possibilities and share their use cases in the comments.

AI summaries can miss context or contain errors. Check important details against the original video.

Go a little deeper.

Have a question about this video? Load its transcript to open the video chat.