Download & Install
Install the Perplexity AI Connector from the OutSystems Forge.
Install the Perplexity AI Demo for testing it out.
API Key Setup for Demo App
Go to Service Center > Factory > Modules > PerplexityAIDemo > Site Properties.
Locate APIKey.
APIKey
Replace the default value with your valid Perplexity AI API Key.
Open your Reactive Web or Mobile App.
Add a reference to the PerplexityAIConnector module.
Take Server Action: PerplexityChatCompletion as dependency.
Mandatory:
model: typically "sonar", "sonar-reasoning", "sonar-deep-research". You can use static entity named models also
model
"sonar", "sonar-reasoning", "sonar-deep-research". You can use static entity named models also
messages: List of {role, content} objects (e.g., system, user, assistant)
messages
{role, content}
system
user, assistant
Non Mandatory:
search_mode: "web" or "academic"
search_mode
"web"
"academic"
reasoning_effort: "low", "medium", or "high"
reasoning_effort
"low"
"medium"
"high"
search_domain_filter: List of domains (e.g., ["nasa.gov"])
search_domain_filter
["nasa.gov"]
search_recency_filter: e.g., "week", "day"
search_recency_filter
"week"
"day"
return_images, return_related_questions: Boolean
return_images
return_related_questions
temperature, top_p, presence_penalty, frequency_penalty: (optional tuning parameters)
temperature
top_p
presence_penalty
frequency_penalty