User Guides
Build custom AI Agents-rantestcommit2
1
Prerequisite 1: Install xpander-sdk and build
Log in to your Xpander account. - Navigate to the Connectors section. Create connectors for Notion and Slack. Follow the provided instructions to authorize access.
2
Prerequisite 2: Define Your AI App
- In Xpander, create a new AI App (e.g., Notion AI Agent) using OpenAI Python SDK or LangChain Python SDK. - Set up the AI App to access your Notion and Slack connectors. - Obtain the API key for the AI App from the Xpander dashboard.
3
Prerequisite 3: Obtain API Keys
- Obtain API keys from both your Xpander AI App and your LLM provider.
Next, create a Python script (agent_example.py):
Running the Single Agent Example
Run the Python script:
python agent_example.py
View the response: This will retrieve the latest blog post from your ContentDB database in Notion.