AI-Driven Chat Use Cases
AI-Driven Chat Use Cases
Use the Desearch API to build chatbots that pull live web and social data into their answers.
Typical applications:
- Customer support bots that answer with current information.
- Virtual assistants for scheduling, recommendations, and general help.
- Search assistants that surface insights from social media and the web.
API Endpoints Used
| Method | Endpoint | Description |
|---|---|---|
| POST | Desearch AI Search | AI-powered search for real-time interactions. |
| POST | Desearch Web Link Search | Fetch web results for chatbot logic. |
| POST | Desearch X (Twitter) Posts | Extract conversations from X (Twitter) posts. |
| GET | Basic X (Twitter) Search | Simple X (Twitter) searches. |
| GET | Basic Web Search | General web search. |
Implementation Example
Basic Endpoint Implementation
A chatbot that fetches X (Twitter) and web results before answering.
Step 1: AI-Driven Response with Nova AI Search
curl
Step 2: Fetching X Data for Chatbot Context
curl
Step 3: Enriching Chatbot Responses with Web Search
curl
Expected Output
The chatbot combines results from AI search, X, and the web to build its response.
Python Scenario Implementation
A small Python application that combines the three endpoints into one chatbot response.
python
How It Works
- The chatbot takes user input.
- It calls AI search for a summarized answer.
- It calls the X endpoint for recent posts.
- It calls web search for recent articles.
- It combines all three sources into one response.