Skip to main content
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.

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:
React Component with Error Handling:
Agent Message with Deeplink:

Advanced Implementation Patterns

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

  • 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
  • Implement proper URL validation
  • Add loading states for better UX
  • Create reusable components for consistency
  • Include appropriate metadata where supported
  • Test across different client versions
  • Verify fallback behavior works correctly
  • Confirm message limits are respected
  • Validate XIP-67 compliance
  • Monitor deeplink success rates
  • Track user engagement through deeplinks
  • Gather feedback on user experience
  • Iterate based on usage patterns

Common Patterns

Agent-to-User Private Invitation

Mini App Integration

By following these patterns and best practices, you’ll create seamless deeplink experiences that enhance user engagement and provide clear paths for continued interaction with your agents.