How to connect a chat model?

I’m new to n8n and excited to use Perplexity within my workflows as my chat model. I have a Perplexity Pro subscription, I’ve got some API credits to play with each month. However, I’m struggling to find clear guidance on setting up the Perplexity node as a chat model in n8n.

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:

  • Database (default: SQLite):

  • n8n EXECUTIONS_PROCESS setting (default: own, main):

  • Running n8n via (Docker, npm, n8n cloud, desktop app):

  • Operating system:

1 Like

Hey @Cascade hope all is well. Welcome to the community.

Three ways you can reach Perplexity would be:

  • via openrouter account (https://openrouter.ai/), where you can integrate your own perplexity key (BYOK). This will require extra credit with openrouter.

    OpenRouter setup
  • via native Perplexity Node

    Native Perplexuty setup
  • via http request from HTTP Request node by utilizing perplexity api endpoints directly (I used the header with API key, but the recommended way is to create a separate credentials).

    HTTP Request setup
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.