Hi Community,
i am trying to connect Perplexity via HTTP node but it returns the error: Class Could not be found. Please check if the class is named correclty.
Could anyone please help me how can i fix it?
Hi, , I use perplexity with the http and it works as expected. I checked your JSON structure and that seems correct , on my end the only thing I can spot that’s different, is my options, does not include the redirects option your’s specifies.
Do you have any other info you can share on how you are using the HTTP node, it part of a larger workflow?
hi, thanks for reply.
I am building a simple research workflow that would just make a research in perplexity on a given topic.
Hello Natallla_Ozmu.
Hope you are well.
Confirm that the endpoint used for the Perplexity API is correct.
Add the necessary headers, such as:
{
"Content-Type": "application/json",
"Authorization": "Bearer <YOUR_API_KEY>"
}
Enable Debug Mode
Enable the “Test Step” option to validate the data that the node is sending and identify if there are errors in the configured values.
External Endpoint Testing
Use a tool like Postman or cURL to test the same request on the endpoint. If it works outside of N8N, the problem may be in the node configuration.
Use Dynamic Expressions: Use N8N properties to configure dynamic parameters on the HTTP node.
An example would be:
{{ $json[“inputParameter”] }}
Make sure that inputParameter exists in the previous flow.
I hope I have helped in some way