What you’ll learn
By the end of this guide, you’ll be able to:
- Implement deeplinks for direct messaging with agents
- Create seamless user flows between group and private conversations
- Follow best practices for deeplink implementation
- Handle fallbacks and cross-client compatibility
Overview
Deeplinks enable seamless navigation within Base App, allowing agents to create more engaging and intuitive user experiences. The most common use case is directing users to start a private conversation with an agent from a group chat context.Direct Message Deeplinks
Use Case
Your miniapp has an agent and you want to encourage people to chat with the agent directly. Or, your agent exists in a group chat context and wants users to interact with it privately. You could add a button like “Chat with me” and use this deeplink.Syntax
Parameters
- address — The 0x address of the user you want to chat with (in hex format, e.g.,
0xabc...1234
)
Implementation Examples
Basic Button Implementation:Advanced Implementation Patterns
Context-Aware Deeplinks
Create deeplinks that carry context about the conversation or user intent:Multi-Agent Coordination
When working with multiple agents, create clear deeplinks for each:Best Practices
Validation and Error Handling
Always validate content structures and provide robust error handling:Fallbacks for Unsupported Clients
Provide fallbacks for clients that don’t support deeplinks:Testing Across Client Versions
Test your deeplinks across different client versions and environments:Message and Metadata Limits
Size Limitations
Keep your deeplink messages concise and within platform limits:Metadata Best Practices
When sending deeplinks, include appropriate metadata:XIP-67 Compliance
Ensure your deeplink implementation follows XIP-67 standards:Protocol Requirements
- Use proper URL scheme formatting
- Validate address formats before creating deeplinks
- Handle protocol registration appropriately
- Provide clear error messages for unsupported operations
Security Considerations
Implementation Checklist
Pre-Implementation
Pre-Implementation
- Validate agent addresses before creating deeplinks
- Plan fallback experiences for unsupported clients
- Design error handling for failed deeplink navigation
- Test message length limits with your content
Development
Development
- Implement proper URL validation
- Add loading states for better UX
- Create reusable components for consistency
- Include appropriate metadata where supported
Testing
Testing
- Test across different client versions
- Verify fallback behavior works correctly
- Confirm message limits are respected
- Validate XIP-67 compliance
Deployment
Deployment
- Monitor deeplink success rates
- Track user engagement through deeplinks
- Gather feedback on user experience
- Iterate based on usage patterns