Quickstart
This guide will help you get started with WALTA's autonomous finance infrastructure. We'll cover how to set up your environment, create your first AI agent, and process payments through our platform.
Before you can use WALTA's services, you'll need to:
- Create an account in the developer portal
- Generate your API key
- Set up your Stripe account for payment processing
Set up your environment
First, let's set up your development environment. WALTA provides SDKs for Python and JavaScript, with more languages coming soon.
# Install the WALTA Python SDK
pip install walta-api
# Install additional dependencies for AI agents
pip install langchain openai
Initialize your API client
Once you have the SDK installed, you'll need to initialize your API client with your API key.
from walta_api import WaltaApi
# Initialize the API client
api = WaltaApi(api_key="your_api_key")
Create your first AI agent
Now, let's create a simple AI agent that can search for products and process payments.
from langchain.agents import Tool
from walta_api import WaltaApi
# Initialize the API client
api = WaltaApi(api_key="your_api_key")
# Create tools for the agent
tools = [
Tool(
name="search_products",
func=api.get_products,
description="Search for products by various criteria"
),
Tool(
name="process_payment",
func=api.send_payment,
description="Process a payment for a product"
)
]
# Create your agent using LangChain
# (Implementation details will depend on your specific agent requirements)
Make your first API request
Let's search for products and process a payment using your agent.
# Search for products
products = api.get_products(
type="service",
price=100,
vendor_name="ExampleVendor"
)
# Process a payment
payment = api.send_payment(
product_id="prod_123",
quantity=1,
metadata={
"order_id": "order_456"
}
)
Test your setup
To verify everything is working correctly, try this simple test:
# Test product search
products = api.get_products()
print(f"Found {len(products['products'])} products")
# Test vendor list
vendors = api.get_vendors()
print(f"Found {len(vendors['vendors'])} vendors")
# Test types
types = api.get_types()
print(f"Found {len(types['types'])} product types")
What's next?
Congratulations! You've set up your WALTA environment and made your first API calls. Here are some next steps to explore:
-
Build Autonomous Agents
- Learn how to create more sophisticated AI agents
- Implement custom tools and workflows
- Handle complex payment scenarios
-
Explore the API
-
Advanced Topics
-
Join the Community