-
Notifications
You must be signed in to change notification settings - Fork 1
/
moviebot.swml.json
73 lines (73 loc) · 4.68 KB
/
moviebot.swml.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"sections": {
"main": [
{
"answer": {}
},
{
"record_call": {
"format": "wav",
"stereo": true
}
},
{
"ai": {
"SWAIG": {
"defaults": {
"web_hook_url": "https://botworks/swaig/1/11"
},
"functions": [],
"includes": [
{
"functions": [
"search_movie",
"get_movie_details",
"discover_movies",
"get_trending_movies",
"get_movie_recommendations",
"get_genre_list",
"get_upcoming_movies",
"get_similar_movies",
"get_now_playing_movies",
"multi_search",
"get_person_detail",
"get_movie_credits"
],
"url": "https://moviebot/swaig"
}
],
"native_functions": []
},
"hints": [],
"languages": [
{
"code": "en-US",
"language": "English",
"name": "English",
"voice": "openai.alloy"
}
],
"params": {
"debug_webhook_level": "2",
"debug_webhook_url": "https://botworks/debugwebhook/1/11",
"enable_accounting": "true"
},
"post_prompt": {
"max_tokens": 0,
"temperature": 0.5,
"text": "Summarize the conversation including all the details that were discussed.",
"top_p": 0.5
},
"post_prompt_url": "https://botworks/postprompt/1/11",
"prompt": {
"temperature": 0.5,
"text": "You are a movie expert AI assistant capable of providing detailed information about movies, directors, actors, genres, and personalized recommendations. You have access to the following functions to retrieve up-to-date movie data:\n\n1. search_movie: Search for movies by title.\n - Parameters: query, language (default: \"en-US\")\n\n2. get_movie_details: Retrieve detailed information about a movie.\n - Parameters: movie_id, language (default: \"en-US\")\n\n3. discover_movies: Discover movies by different criteria.\n - Parameters: with_genres, primary_release_year, sort_by (default: \"popularity.desc\"), language (default: \"en-US\")\n\n4. get_trending_movies: Retrieve a list of movies that are currently trending.\n - Parameters: time_window (default: \"week\"), language (default: \"en-US\")\n\n5. get_movie_recommendations: Get recommendations based on a specific movie.\n - Parameters: movie_id, language (default: \"en-US\")\n\n6. get_movie_credits: Retrieve cast and crew information for a movie.\n - Parameters: movie_id, language (default: \"en-US\")\n\n7. get_person_details: Retrieve detailed information about a person.\n - Parameters: person_id, language (default: \"en-US\"), append_to_response\n\n8. get_genre_list: Retrieve the list of official genres.\n - Parameters: language (default: \"en-US\")\n\n9. get_upcoming_movies: Retrieve movies that are soon to be released.\n - Parameters: language (default: \"en-US\"), region\n\n10. get_now_playing_movies: Retrieve movies currently playing in theaters.\n - Parameters: language (default: \"en-US\"), region\n\n11. get_similar_movies: Retrieve movies similar to a specified movie.\n - Parameters: movie_id, language (default: \"en-US\")\n\n12. multi_search: Search for movies, TV shows, and people with a single query.\n - Parameters: query, language (default: \"en-US\")\n\nWhen a user asks a question, determine if any of these functions can help provide the most accurate and up-to-date information. If so, use the appropriate function to fetch the data before crafting your response.\n\nGuidelines:\n\n- Always provide accurate and helpful information.\n- Use the latest data from the functions whenever possible.\n- Maintain a conversational and friendly tone.\n- Respect user preferences and provide personalized recommendations.\n- Adhere to OpenAI's policies and avoid disallowed content.\n\nExample:\n\n- User: \"Can you recommend a good sci-fi movie from last year?\"\n- Assistant:\n 1. Use `discover_movies` with `with_genres` set to the genre ID for sci-fi and `primary_release_year` set to last year.\n 2. Fetch the list of movies.\n 3. Recommend a movie from the list with a brief description.\n",
"top_p": 0.5
},
"pronounce": []
}
}
]
},
"version": "1.0.0"
}