Grok-4 Applied to two workflow examples [RAG with Perplexity]

In this tutorial, I put xAI’s Grok 4 to the test by building two AI Agents in n8n. You’ll see how to:

  • Connect the Grok 4 API node
  • Build an Investment Analysis agent to score stocks
  • Create a Research Assistant agent fetching real‑time web data
  • Compare accuracy and response speed on a Customer Support (RAG) Workflow

Ideal for anyone curious about Grok 4’s capabilities and a hands‑on look at AI automation in n8n.

Hello. would like to ask some help about the Perplexity API in n8n.

i follow the steps and copy and paste the API key. but it show fail connection. i try to run the flow, it showing that no respond from perplexity. how can i fix it?