Server SDKs
Build AI agents, control calls, send messages, and more
ConciergeAgent provides venue information, answers questions about amenities and services, helps with bookings, and gives directions.
1from signalwire.prefabs import ConciergeAgent23agent = ConciergeAgent(4 venue_name="Grand Hotel",5 services=["room service", "spa bookings", "restaurant reservations", "tours"],6 amenities={7 "pool": {"hours": "7 AM - 10 PM", "location": "2nd Floor"},8 "gym": {"hours": "24 hours", "location": "3rd Floor"},9 "spa": {"hours": "9 AM - 8 PM", "location": "4th Floor"}10 }11)1213if __name__ == "__main__":14 agent.run()
1amenities = {2 "amenity_name": {3 "hours": "Operating hours",4 "location": "Where to find it",5 "description": "Optional description",6 # ... any other key-value pairs7 }8}
from signalwire.prefabs import ConciergeAgent
import { ConciergeAgent } from '@signalwire/sdk'
1ConciergeAgent(2 venue_name="...", # Name of venue (required)3 services=[...], # List of services offered (required)4 amenities={...}, # Dict of amenities with details (required)5 hours_of_operation=None, # Dict of operating hours6 special_instructions=None, # List of special instructions7 welcome_message=None, # Custom welcome message8 name="concierge", # Agent name9 route="/concierge", # HTTP route10 **kwargs # Additional AgentBase arguments11)
ConciergeAgent provides these SWAIG functions automatically:
check_availability
get_directions
1#!/usr/bin/env python32## resort_concierge.py - Hotel concierge agent3from signalwire.prefabs import ConciergeAgent45agent = ConciergeAgent(6 venue_name="The Riverside Resort",7 services=[8 "room service",9 "spa treatments",10 "restaurant reservations",11 "golf tee times",12 "airport shuttle",13 "event planning"14 ],15 amenities={16 "swimming pool": {17 "hours": "6 AM - 10 PM",18 "location": "Ground Floor, East Wing",19 "description": "Heated indoor/outdoor pool with poolside bar"20 },21 "fitness center": {22 "hours": "24 hours",23 "location": "Level 2, West Wing",24 "description": "Full gym with personal trainers available"25 },26 "spa": {27 "hours": "9 AM - 9 PM",28 "location": "Level 3, East Wing",29 "description": "Full service spa with massage and facials"30 },31 "restaurant": {32 "hours": "Breakfast 7-10 AM, Lunch 12-3 PM, Dinner 6-10 PM",33 "location": "Lobby Level",34 "description": "Fine dining with panoramic river views"35 }36 },37 hours_of_operation={38 "front desk": "24 hours",39 "concierge": "7 AM - 11 PM",40 "valet": "6 AM - 12 AM"41 },42 special_instructions=[43 "Always offer to make reservations when guests ask about restaurants or spa.",44 "Mention the daily happy hour at the pool bar (4-6 PM)."45 ],46 welcome_message="Welcome to The Riverside Resort! How may I assist you today?"47)4849if __name__ == "__main__":50 agent.add_language("English", "en-US", "rime.spore")51 agent.run()