Instantly searches the web for real-time answers using the Perplexity AI API (Sonar Pro).
Just ask anything — "What's the weather in Tokyo?" or "Latest news on AI?" — and it returns a concise, spoken-friendly answer without symbols or jargon.
- search
- tell me about
- what is
- who is
- Requires a Perplexity AI API key (available at https://www.perplexity.ai/settings/api).
- Replace the placeholder
YOUR_API_KEYinmain.pywith your own key before using.
- User triggers with "search" or a question (or similar)
- Assistant immediately acknowledges: "Let me check that for you real quick"
- Sends the query to Perplexity's Sonar Pro model
- Gets a clean, concise answer back
- Speaks the result aloud: "Here's what I found: ..."
- Resumes normal conversation flow automatically
User: What's the capital of Australia?
AI: Let me check that for you real quick...
Here's what I found: The capital of Australia is Canberra, not Sydney as many people assume.
User: Latest news on SpaceX
AI: Let me check that for you real quick...
Here's what I found: SpaceX recently completed a successful Starship test flight, marking a major milestone in their Mars mission program.