Perplexity
Overview
Perplexity AI is an AI chatbot-powered research and conversational search engine that answers queries using natural language predictive text. With its ability to understand context and deliver accurate responses, Perplexity AI is ideal for various applications, from enhancing customer support to enabling content creation and data analysis.
Setting up Perplexity
Create an access token
To get started you'll need a Perplexity API key. To get an API key:
- Visit the Perplexity API Settings page
- Register your credit card. This step will not charge your credit card. Rather, it stores payment information for later API usage.
- Purchase credits. API keys can only be generated when your balance is nonzero.
- Scroll down to API keys and generate an API key
- Copy the API key to configure your integration's configuration
Add integration
Once you have an access token, you're ready to set up your Superblocks integration.
- In the web app, navigate to the Integrations page
- Click on the Perplexity tile
- Name the integration
- Paste your credentials into the relevant fields
- Optionally, add more configurations to set credentials for different environments
- Click Create
Perplexity connected Now you can use Perplexity in any Application, Workflow, or Scheduled Job.
Use Perplexity in APIs
Once your Perplexity integration is created, you can start calling Perplexity actions in Superblocks APIs.
Perplexity actions are REST requests. To learn more about REST requests in Superblocks, see the Building REST requests guide.
Certain Perplexity actions support streaming. Learn more about building APIs in Superblocks that
stream data from REST APIs
.
Supported actions
Create a Chat Completion
Creates a model response for the given chat conversation.Generic HTTP Request
Every SaaS integration in Superblocks comes with a built in Generic HTTP Request Action. This is a powerful action you can use to call Perplexity API endpoints not in the Superblocks supported actions.
To use this action simply add the method, path, required query parameters, and body for the desired endpoint.
Learn more about REST requests in Superblocks in our Building REST requests guide.
Generic HTTP Requests use the authentication set up and base URL you've configured for your integration, making it an easy for your team to extend Superblocks Integrations to meet their needs.