Hi, I have Perplexity Pro. Can I use it as an integration and AI model?
Yes, you can use Perplexity as an integration in Clay. We have a native Perplexity AI integration that allows you to search the web for information with AI or use a non-online model. To access it, click Add Enrichment and search for "Perplexity AI". Each enriched cell costs 1 credit. You can select different Perplexity models in the Model dropdown menu based on your needs. The integration works on all Clay plans (Starter, Explorer, Pro, Enterprise) and uses Clay's shared API.
can I not use my own perplexity account as an integration to not burn credits?
Yes, you can use your own Perplexity Pro account to avoid using Clay credits. When you bring your own API key for any integration, you won't be charged Clay credits. To add your Perplexity API key: 1. Go to Settings > Connections 2. Click Add Connection and search for Perplexity 3. Configure with your API key Alternatively, when setting up a Perplexity enrichment, select Add Account to connect your own API key instead of using Clay's shared account. This feature is available on paid Clay plans (Starter, Explorer, Pro, Enterprise).
I was just looking into this today as well Mattis!
how can I get a JSON response from Perplexity (like w. claygent) that I can customize, its missing in this integration
The Perplexity integration doesn't have built-in JSON response customization like Claygent. However, you can achieve customizable responses by using the System Prompt field to guide the model's output format. In the Perplexity integration setup, use the System Prompt field to specify that you want JSON-formatted responses with your desired structure. For example, you could prompt it to return data in specific JSON fields. Alternatively, if you need more control over JSON responses, consider using the HTTP API integration to directly call Perplexity's API, which gives you full control over request/response formatting and allows you to define specific field paths to return from the JSON response. Could you copy and paste the specific JSON format you're trying to achieve? This will help troubleshoot the best approach for your use case.
{ "company_size_rule": "<one-sentence rule statement>", "prospects": [ { "full_name": "<Full Name>", "title": "<Job Title>", "linkedin_url": "https://linkedin.com/in/…", "reasoning": "<≤ 25-word justification>" } /* repeat 0–4 more prospect objects as allowed (max 5 for >1000 employees; 3 for 100–1000; 2 for <100) */ ] }
The Perplexity integration doesn't have built-in JSON output formatting like Claygent. However, you can use the System Prompt field to specify your desired JSON structure.
In the System Prompt field, instruct the model to return responses in your exact JSON format: LBKSReturn the response in this exact JSON format: { "company_size_rule": "<one-sentence rule statement> ", "prospects": [ { "full_name": "<Full Name> ", "title": "<Job Title> ", "linkedin_url": "<URL> ", "reasoning": "<≤ 25-word justification> " } ] }LBKS
Alternatively, use the HTTP API integration to directly call Perplexity's API for full control over JSON request/response formatting.
Since you mentioned JSON formatting, could you copy and paste your current setup so I can troubleshoot any specific issues?
Hey Jacob! It looks like your question was answered, but happy to help if anything else comes up! For now, I'll close out this thread, but feel free to respond or start a new one!