AI Assistant Capabilities (Test‐cases) - Waiviogit/waivio GitHub Wiki

AI Assistant Capabilities

The Waivio AI Assistant can perform the following functions:

Search Capabilities

Search by Map/Coordinates:

  • Search for objects (restaurants, businesses, hotels, etc.) using geographic coordinates
  • Search within bounding box coordinates (top-right and bottom-left points)
  • Search by city name or location
  • Filter search results by object type (restaurant, business, hotel, etc.)
  • Search with tag filters in geographic areas

Search Objects:

  • Search for object (site-specific if it is social site)
  • Search with multiple keywords
  • Search with object type filters
  • Search across all sites when no results found (fallback search)
  • Get results with links when available

Search Users:

  • Search for user accounts by username (exact or partial)
  • Search handles case sensitivity

Search Campaigns:

  • Find active campaigns on the site
  • Search for objects with active campaigns by keywords
  • Search campaigns by product name
  • Search campaigns by brand name
  • Search campaigns by location
  • Search campaigns by object type
  • Combine campaign search with general object search

Contact Information:

  • Get site owner contact information
  • Get customer support contacts

Knowledge Base Search (Vector Search)

UserTools Information:

  • Answer questions about account settings
  • Answer questions about notifications
  • Answer questions about profile management
  • Answer questions about wallet and WAIV tokens
  • Answer questions about drafts and bookmarks
  • Answer questions about user affiliate codes
  • Answer questions about new accounts (VIP tickets)
  • Answer questions about inviting users
  • Answer questions about managing user shops
  • Answer questions about favorites

CampaignManagement Information:

  • Answer questions about campaign creation
  • Answer questions about campaign management
  • Provide step-by-step instructions for campaigns

EarnCampaign Information:

  • Answer questions about creating review posts
  • Answer questions about earning crypto rewards
  • Explain campaign participation process
  • Explain campaign requirements and eligibility
  • Explain reward system and WAIV tokens

ObjectImport Information:

  • Answer questions about importing objects to Waivio
  • Explain object import process
  • Provide formatting requirements for imports

SitesManagement Information:

  • Answer questions about creating social shopping sites
  • Answer questions about site customization
  • Answer questions about site configuration
  • Answer questions about site settings
  • Answer questions about domain setup
  • Answer questions about affiliate codes
  • Answer questions about administrators, moderators, and authorities

WaivioObjects Information:

  • Answer questions about how objects work
  • Answer questions about creating objects
  • Answer questions about filling objects with information
  • Answer questions about object types
  • Explain object structure and properties

WaivioGeneral Information:

  • Answer general questions about Waivio platform
  • Explain how Waivio works
  • Answer questions about posts and newsfeeds
  • Answer questions about shops
  • Answer questions about Hive accounts
  • Provide platform overview and features

User Tools

User Account Information:

  • Get user's current voting power (VP) percentage
  • Get user's current resource credits (mana) percentage
  • Get user profile data (social links, about, images)
  • Get user's recent post titles
  • Check if user has activated object import service
  • Handle guest users and logged-out states
  • Search for user accounts by username

Page Context:

  • Retrieve content from user's current page
  • Proofread posts from current page
  • Answer questions about current page content

Image Tools

Image Generation:

  • Generate images from text prompts using /imagine command
  • Edit images from text prompts (when images are provided)
  • Generate images in different sizes (1024x1024, 1536x1024, 1024x1536)

Image Analysis:

  • Analyze and describe images provided by user
  • Analyze product images
  • Analyze location/place images
  • Answer questions about images
  • Handle multiple images

Content Services

Translation and Proofreading:

  • Translate content to multiple languages
  • Proofread posts and content
  • Provide grammar and style corrections

Contextual Responses:

  • Provide contextual follow-up questions
  • Maintain conversation context across multiple queries
  • Adapt responses based on user login status
  • Provide host-specific information and links

Combined Functionality

Multi-Tool Integration:

  • Combine object search with campaign search
  • Combine general search with map search and campaign search
  • Combine user tools with object and campaign searches
  • Combine vector search with API-based search tools
  • Combine site search with campaign search and user tools
  • Use multiple tools together for comprehensive answers

Advanced Search:

  • Search with multiple filters (object type + location + campaign)
  • Search with coordinates and object type
  • Search with tag and location
  • Search with time-based context
  • Search with price range context
  • Search with rating context
  • Search with distance context
  • Search with availability context
  • Search with category context

Error Handling and Edge Cases

Robust Handling:

  • Handle searches with no results gracefully
  • Handle tool unavailability with fallback behavior
  • Handle invalid input (special characters, empty queries, very long queries)
  • Handle SQL injection attempts
  • Handle XSS attempts
  • Handle invalid coordinates
  • Handle malformed input
  • Handle ambiguous locations
  • Handle misspelled locations
  • Handle mixed languages in queries
  • Handle queries with emojis, URLs, emails, phone numbers, hashtags

Performance and Integration

Scalability:

  • Handle large result sets
  • Handle multiple concurrent tool calls
  • Handle complex nested queries
  • Maintain acceptable response times

User Journey Support:

  • Support complete flow from search to campaign participation
  • Support flow from object creation to search
  • Support flow from site setup to product search
  • Maintain session persistence across queries
  • Work across different host domains

Response Quality

Enhanced Responses:

  • Include relevant links and images when available
  • Provide host-specific customization
  • Use bullet points when appropriate
  • Keep responses concise and user-friendly
  • Personalize messages using user's name when available


Test-cases

AI Assistant Test Questions

This file contains all test questions extracted from TEST_CASES.md for easy testing of the Waivio AI Assistant.

Search Capabilities

Search by Map/Coordinates

  • Find restaurants using coordinates [-122.4194, 37.7749]
  • Find businesses in the area bounded by coordinates [-122.5, 49.2] to [-123.0, 49.3]
  • Find restaurants in Vancouver
  • Find cafes in London
  • Find Italian restaurants in New York

Search Objects

  • Find information about coffee shops
  • Find coffee shops and cafes in Seattle
  • Find restaurants in Toronto
  • Find information about rare product XYZ123
  • Find products available on this site

Search Users

  • Search for user account "john_doe"
  • Find users with username containing "john"
  • Search for user "John_Doe" (test case sensitivity)

Search Campaigns

  • What campaigns are currently active on this site?
  • Find objects with active campaigns related to "coffee"
  • Find active campaigns for iPhone 15
  • Find active campaigns related to Starbucks
  • Find active campaigns for restaurants in New York
  • Find active campaigns for books
  • Find information about coffee shops and their active campaigns

Contact Information

  • How do I contact the site owner?
  • How do I contact customer support?

Knowledge Base Search (Vector Search)

UserTools Information

  • How do I manage my account settings?
  • How do I configure my notifications?
  • How do I update my profile information?
  • How do I use my wallet and WAIV tokens?
  • How do I manage my drafts and bookmarks?
  • How do I set up affiliate codes?
  • How do I create a new account using VIP tickets?
  • How do I invite other users?
  • How do I manage my user shop?
  • How do I manage my favorites?

CampaignManagement Information

  • How do I create a campaign on Waivio?
  • How do I manage my campaigns?
  • Can you guide me through creating a campaign step by step?

EarnCampaign Information

  • How do I create a review post?
  • How do I earn crypto rewards?
  • How does the campaign participation process work?
  • What are the requirements to participate in a campaign?
  • How do WAIV token rewards work?

ObjectImport Information

  • How do I import objects to Waivio?
  • Can you explain the object import process?
  • What are the formatting requirements for importing objects?

SitesManagement Information

  • How do I create a social shopping website?
  • How do I customize my social shopping site?
  • How do I configure my site settings?
  • What site settings are available?
  • How do I set up a custom domain for my site?
  • How do I configure affiliate codes for my site?
  • What is the difference between administrators, moderators, and authorities?

WaivioObjects Information

  • How do objects work on Waivio?
  • How do I create an object?
  • How do I add information to an object?
  • What types of objects can I create?
  • What is the structure of a Waivio object?

WaivioGeneral Information

  • What is Waivio?
  • How does Waivio work?
  • How do posts and newsfeeds work?
  • How do shops work on Waivio?
  • What is a Hive account and how does it relate to Waivio?
  • Can you give me an overview of Waivio's features?

User Tools

User Account Information

  • What is my current voting power?
  • What are my current resource credits?
  • Show me my profile information
  • What are my recent post titles?
  • Is my object import service enabled?
  • What is my voting power? (test with guest user or not logged in)
  • Search for user account "john_doe"

Page Context

  • Can you see what's on my current page?
  • Can you proofread the post I'm currently viewing?
  • What information is shown on this page?

Image Tools

Image Generation

  • /imagine a beautiful sunset over mountains
  • /imagine edit this image to add a sunset background [with image attachment]
  • /imagine a product photo, size 1024x1024
  • /imagine a cityscape at night, size 1536x1024
  • /imagine a portrait of a person, size 1024x1536

Image Analysis

  • What is in this image? [with image attachment]
  • What product is shown in this image? [with product image]
  • What location is shown in this image? [with location image]
  • Can you describe what you see in this image? [with image attachment]
  • Describe these images [with multiple image attachments]

Content Services

Translation and Proofreading

  • Can you translate this post to Spanish? [with post content]
  • Can you proofread this post for me? [with post content]
  • Can you check the grammar and style of this text? [with text content]

Contextual Responses

  • What is Waivio? (verify assistant provides follow-up question)
  • [First] Find coffee shops in Seattle [Follow-up] What campaigns are available for them?
  • How do I participate in campaigns? (test both logged in and logged out)
  • How do I contact the site owner? (test on different host domains)

Combined Functionality

Multi-Tool Integration

  • Find coffee shops that have active reward campaigns
  • Find restaurants in Vancouver with active campaigns
  • Show me my profile and find coffee shops with active campaigns
  • How do I create objects and find existing coffee shop objects?
  • Find products on this site with active campaigns and show my voting power
  • Tell me about coffee shops in Seattle, what campaigns are available, and show my profile

Advanced Search

  • Find restaurants in downtown Seattle with active campaigns
  • Find cafes in the area from coordinates [-122.4194, 37.7749] to [-122.4094, 37.7849]
  • Find Italian restaurants in New York
  • Find recently added restaurants in Toronto
  • Find affordable restaurants in San Francisco
  • Find highly rated coffee shops in Seattle
  • Find restaurants near me within 5 km
  • Find restaurants open now in Vancouver
  • Find vegetarian restaurants in Portland

Error Handling and Edge Cases

Robust Handling

  • Find information about non-existent product "xyz123abc"
  • What is my voting power? (simulate tool failure)
  • !@#$%^&*() (test with special characters)
  • Find objects WHERE 1=1; DROP TABLE
  • <script>alert('xss')</script>
  • Find restaurants in area with coordinates [200, 200] to [300, 300] (invalid coordinates)
  • {"invalid": json structure
  • Find restaurants in Springfield (multiple cities named Springfield)
  • Find restaurants in Vancuver (misspelled Vancouver)
  • Find cafés in Vancouver (mixing English and French)
  • Find 🍕 pizza places in New York

Performance and Integration

Scalability

  • Find all restaurants in New York (may return many results)
  • Find coffee shops, check my voting power, and show active campaigns
  • Find restaurants in Seattle that have active campaigns and show me my profile
  • Find restaurants in Vancouver (measure response time)

User Journey Support

  • Find coffee shops with active campaigns and tell me how to participate
  • How do I create a restaurant object and find existing restaurants?
  • How do I create a site and find products to add?
  • [First] Find coffee shops in Seattle [Follow-up] What campaigns are available for them?
  • Find products on this site (test on different host domains)

Response Quality

Enhanced Responses

  • How do I create a social shopping website?
  • How do I contact the site owner? (test on different host domains)
  • What are the main features of Waivio?
  • What is Waivio and how does it work?
  • What is my voting power? (test with logged-in user)

Total Questions: 150+ test questions covering all functionality.

⚠️ **GitHub.com Fallback** ⚠️