MyShell 백서

MyShell

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 28쪽

/code></td><td>Number of id images in total images. First `num_ids` picture descripton should not contains [NC] if ref_image is not None.This should not exceed total number of line-separated prompts</td><td>2</td><td>false</td></tr><tr><td>output_format</td><td><code>string</code></td><td>Format of the output images</td><td>jpg</td><td>false</td></tr><tr><td>output_quality</td><td><code>integer</code></td><td>Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality</td><td>80</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | -------- | ------------------------------------------------------------------------------------------------------------ | --------- | | url | `string` | The url of generated image, stored in the cloud. Only temporarily effective, will be cleared in a few hours. | `image` | **Output Example** {% code fullWidth="false" %} ```json { // ref image: https://image.myshell.ai/image/chat/embed_obj/255/202405090351/images.jpeg.jpeg "url": "https://image.myshell.ai/image/chat/embed_obj/255/202405090350/b779162b8ce34e53896a9ea492a6c279.jpeg" } ``` {% endcode %} # Suno Lyrics Generator Suno AI lyrics generator. Generate lyrics based on the given prompt. ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1782688665554087936) to try this widget and copy the Pro Config template. ## Usage Generate lyrics given the prompt. The lyrics can be used in Suno Music Generation **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>prompt</td><td><code>string</code></td><td>lyrics prompt</td><td>Generate the lyrics of a song about love</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ------- | ------- | ---------------------------------------------------------------------------------- | --------- | | results | `array` | The result of suno api, containing the links, titles, and other useful information | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "results": { "status": "complete", "text": "[Verse]\nYou came in my life like a shooting star\nLit up my world\nYou're my guiding star\nEvery time I'm with you\nI feel so alive\nNothing else matters\nYou're all that I strive\n\nIn your arms\nI find my sanctuary\nWith your love\nI can face any adversary\nYou're the remedy to all my pain\nIn your love\nI discover peace again\n\n[Verse 2]\nYou're the rhythm that beats within my heart\nEvery single beat\nIt's a brand new start\nTogether we dance to our own melody\nTwo souls entwined\nPure serendipity", "title": "All I Need" } } ``` {% endcode %} {% endtab %} {% endtabs %} # Suno Music Generator Suno AI song generator. Generate songs based on the given prompt lyrics ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1782688568476921856) to try this widget and copy the Pro Config template. ## Usage Generate a song with Suno-API. The input prompt is the lyrics for the song. **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>prompt</td><td><code>string</code></td><td>lyrics</td><td>We were both young when I first saw you, I close my eyes and the flashback starts I'm standin' there</td><td>true</td></tr><tr><td>mv</td><td><code>string</code></td><td>model version, default: chirp-v3-0</td><td>chirp-v3-0</td><td>false</td></tr><tr><td>title</td><td><code>string</code></td><td>song title</td><td>love story</td><td>true</td></tr><tr><td>tags</td><td><code>string</code></td><td>style of music</td><td>romantic,slow rock</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ------- | ------- | ---------------------------------------------------------------------------------- | --------- | | results | `array` | The result of suno api, containing the links, titles, and other useful information | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "results": [ { "audio_url": "https://cdn1.suno.ai/70b42142-d62c-478e-aa5e-70d50147ff9c.mp3", "image_large_url": "https://cdn1.suno.ai/image_large_70b42142-d62c-478e-aa5e-70d50147ff9c.png", "image_url": "https://cdn1.suno.ai/image_70b42142-d62c-478e-aa5e-70d50147ff9c.png", "status": "complete", "title": "love story", "video_url": "https://cdn1.suno.ai/70b42142-d62c-478e-aa5e-70d50147ff9c.mp4" }, { "audio_url": "https://cdn1.suno.ai/7dc77529-ddea-4c54-b7ed-46844a8aa612.mp3", "image_large_url": "https://cdn1.suno.ai/image_large_7dc77529-ddea-4c54-b7ed-46844a8aa612.png", "image_url": "https://cdn1.suno.ai/image_7dc77529-ddea-4c54-b7ed-46844a8aa612.png", "status": "complete", "title": "love story", "video_url": "https://cdn1.suno.ai/7dc77529-ddea-4c54-b7ed-46844a8aa612.mp4" } ] } ``` {% endcode %} {% endtab %} {% endtabs %} # Table to Markdown Table (csv, tsv, excel) to Markdown Converter ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1783317709148299264) to try this widget and copy the Pro Config template. ## Usage This widget is used to convert table file (csv, tsv, excel) to markdown string, which can be directly rendered in the message for better visualization of the data. **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>document</td><td><code>string</code></td><td>Provide your input csv (.csv).</td><td><a href="https://www.stats.govt.nz/assets/Uploads/Gross-domestic-product/Gross-domestic-product-December-2023-quarter/Download-data/gross-domestic-product-december-2023-quarter-visualisation.csv">default_url</a></td><td>true</td></tr><tr><td>format_from</td><td><code>string</code></td><td>The format of the source table.</td><td>csv</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---------------- | -------- | --------------------------------------- | --------- | | markdown\_string | `string` | The converted result in markdown string | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "markdown_string": "| name | age |\n|:-------|------:|\n| Harry | 18 |\n| Ginny | 17 |" } ``` {% endcode %} {% endtab %} {% endtabs %} # TripAdvisor Get the trip advisor, along with location details, comment and photos {% hint style="info" %} This widget supports multiple actions. For a more comprehensive understanding of its functionality, we recommend reviewing the following documentation carefully. You need to pass both the `action` and other input parameters of the chosen action to your `module_config` {% endhint %} ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1784170810443104256) to try this widget and copy the Pro Config template. ## Usage ### Search Location by Query <mark style="color:green;">`action`</mark> `search_location` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location'</td><td>search_location</td><td>true</td></tr><tr><td>query</td><td><code>string</code></td><td>Text to use for searching based on the name of the location</td><td></td><td>true</td></tr><tr><td>category</td><td><code>string</code></td><td>Filters result set based on property type. Valid options are "hotels", "attractions", "restaurants", and "geos"</td><td>hotels</td><td>false</td></tr><tr><td>phone</td><td><code>string</code></td><td>Phone number to filter the search results by (this can be in any format with spaces and dashes but without the "+" sign at the beginning)</td><td></td><td>false</td></tr><tr><td>address</td><td><code>string</code></td><td>Address to filter the search results by</td><td></td><td>false</td></tr><tr><td>lat_long</td><td><code>string</code></td><td>Latitude/Longitude pair to scope down the search around a specifc point - eg. "42.3455,-71.10767"</td><td>37.7749,-122.4194</td><td>false</td></tr><tr><td>radius</td><td><code>string</code></td><td>Length of the radius from the provided latitude/longitude pair to filter results.</td><td></td><td>false</td></tr><tr><td>radius_unit</td><td><code>string</code></td><td>Unit for length of the radius. Valid options are "km", "mi", "m" (km=kilometers, mi=miles, m=meters)</td><td>km</td><td>false</td></tr><tr><td>language</td><td><code>string</code></td><td>The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.</td><td>en</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the TripAdvisor | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "address_obj": { "address_string": "222 Mason St, San Francisco, CA 94102", "city": "San Francisco", "country": "United States", "postalcode": "94102", "state": "California", "street1": "222 Mason St", "street2": "" }, "bearing": "northeast", "distance": "0.9375039004167687", "location_id": "80793", "name": "Hotel Nikko San Francisco" }, { "address_obj": { "address_string": "888 Howard Street, San Francisco, CA 94103-3011", "city": "San Francisco", "country": "United States", "postalcode": "94103-3011", "state": "California", "street1": "888 Howard Street", "street2": "" }, "bearing": "northeast", "distance": "0.9396498617003877", "location_id": "676408", "name": "InterContinental San Francisco" }, { "address_obj": { "address_string": "1000 Pine St At Taylor Street, San Francisco, CA 94109-5032", "city": "San Francisco", "country": "United States", "postalcode": "94109-5032", "state": "California", "street1": "1000 Pine St", "street2": "At Taylor Street" }, "bearing": "north", "distance": "1.1700270366933818", "location_id": "112355", "name": "The Nob Hill Inn" }, { "address_obj": { "address_string": "717 Battery St, San Francisco, CA 94111", "city": "San Francisco", "country": "United States", "postalcode": "94111", "state": "California", "street1": "717 Battery St" }, "bearing": "northeast", "distance": "1.8779715266780468", "location_id": "8459100", "name": "The Battery" }, { "address_obj": { "address_string": "205 Kentucky St, Petaluma, CA 94952", "city": "Petaluma", "country": "United States", "postalcode": "94952", "state": "California", "street1": "205 Kentucky St" }, "bearing": "north", "distance": "34.11244717545214", "location_id": "3836077", "name": "Hotel Petaluma, Tapestry Collection by Hilton" }, { "address_obj": { "address_string": "1350 Huntington Ave., San Bruno, CA 94066", "city": "San Bruno", "country": "United States", "postalcode": "94066", "state": "California", "street1": "1350 Huntington Ave.", "street2": "" }, "bearing": "south", "distance": "9.231291675933846", "location_id": "225831", "name": "Sonesta ES Suites San Francisco Airport San Bruno" }, { "address_obj": { "address_string": "2515 El Camino Real, Santa Clara, CA 95051-3003", "city": "Santa Clara", "country": "United States", "postalcode": "95051-3003", "state": "California", "street1": "2515 El Camino Real", "street2": "" }, "bearing": "southeast", "distance": "38.15048052818919", "location_id": "80061", "name": "Granada Inn - Silicon Valley" }, { "address_obj": { "address_string": "5415 Stevens Creek Blvd, Santa Clara, CA 95051-7202", "city": "Santa Clara", "country": "United States", "postalcode": "95051-7202", "state": "California", "street1": "5415 Stevens Creek Blvd", "street2": "" }, "bearing": "southeast", "distance": "38.6648908239683", "location_id": "80063", "name": "Woodcrest Hotel" }, { "address_obj": { "address_string": "131 North St, Healdsburg, CA 95448-3821", "city": "Healdsburg", "country": "United States", "postalcode": "95448-3821", "state": "California", "street1": "131 North St" }, "bearing": "northwest", "distance": "62.88299689714899", "location_id": "11904247", "name": "SingleThread Farm - Restaurant - Inn" } ] } ``` {% endcode %} {% endtab %} {% endtabs %} ### Get Location Details <mark style="color:green;">`action`</mark> `location_details` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location'</td><td>location_details</td><td>true</td></tr><tr><td>location_id</td><td><code>string</code></td><td>The location ID to get details for</td><td></td><td>true</td></tr><tr><td>language</td><td><code>string</code></td><td>The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.</td><td>en</td><td>false</td></tr><tr><td>currency</td><td><code>string</code></td><td>The currency code to use for request and response (should follow ISO 4217).</td><td>USD</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the TripAdvisor | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "address_obj": { "address_string": "222 Mason St, San Francisco, CA 94102", "city": "San Francisco", "country": "United States", "postalcode": "94102", "state": "California", "street1": "222 Mason St", "street2": "" }, "amenities": [ "Non-smoking rooms", "Internet", "Suites", "Wifi", "Free Wifi", "Wheelchair access", "Spa", "Hot Tub", "Pool", "Room service", "Restaurant", "Bar/Lounge", "Pets Allowed", "Airport transportation", "Public Wifi", "Dry Cleaning", "Meeting rooms", "Business center", "Fitness center", "Laundry Service", "Concierge", "Banquet Room", "Air conditioning", "Multilingual Staff", "Accessible rooms", "Refrigerator in room", "Minibar", "Conference Facilities", "Non-smoking hotel", "Safe", "Heated pool", "Flatscreen TV", "Breakfast Buffet", "Indoor pool", "Parking", "Facilities for Disabled Guests", "Housekeeping", "ATM On Site", "Baggage Storage", "Bath / Shower", "Breakfast in the Room", "English", "Fitness / Spa Locker Rooms", "Complimentary Toiletries", "24-Hour Front Desk", "Hair Dryer", "Japanese", "On-Demand Movies", "Parking Garage", "Pool / Beach Towels", "Paid Private Parking On-site", "Paid Private Parking Nearby", "24-Hour Security", "Secured Parking", "Taxi Service", "Car Hire", "Currency Exchange", "Evening Entertainment", "Kids' Meals", "Nightclub / DJ", "Patio", "Shallow End", "Valet Parking", "Walk-in Shower", "Beach Access" ], "ancestors": [ { "level": "City", "location_id": "60713", "name": "San Francisco" }, { "abbrv": "CA", "level": "State", "location_id": "28926", "name": "California" }, { "level": "Country", "location_id": "191", "name": "United States" } ], "awards": [ { "award_type": "Travelers Choice", "categories": [], "display_name": "Travelers Choice", "images": { "large": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2024_L.png", "small": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2024_L.png", "tiny": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2024_L.png" }, "year": "2024" }, { "award_type": "Travelers Choice", "categories": [], "display_name": "Travelers Choice", "images": { "large": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2023_L.png", "small": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2023_L.png", "tiny": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2023_L.png" }, "year": "2023" } ], "brand": "Preferred Hotels \u0026 Resorts", "category": { "localized_name": "Hotel", "name": "hotel" }, "description": "Retreat to Hotel Nikko in San Francisco, where personalized service meets cutting-edge style. Our hotel is set in the heart of the city, just steps from Union Square shops and restaurants, making it the ideal destination for both business and leisure travel. Our four-diamond rated property features 532 guest rooms and 22 suites, each with pillow-top beds, high-speed internet, and a wealth of modern amenities.", "latitude": "37.785847", "location_id": "80793", "longitude": "-122.409294", "name": "Hotel Nikko San Francisco", "neighborhood_info": [ { "location_id": "7222631", "name": "Union Square" }, { "location_id": "15622015", "name": "Downtown San Francisco" }, { "location_id": "15621924", "name": "Tenderloin" }, { "location_id": "15622020", "name": "Theater District" } ], "num_reviews": "4730", "parent_brand": "Preferred Hotel Group", "phone": "14153196761", "photo_count": "1360", "price_level": "$$$", "ranking_data": { "geo_location_id": "60713", "geo_location_name": "San Francisco", "ranking": "39", "ranking_out_of": "254", "ranking_string": "#39 of 254 hotels in San Francisco" }, "rating": "4.0", "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-66827-5.svg", "review_rating_count": { "1": "142", "2": "177", "3": "524", "4": "1645", "5": "2243" }, "see_all_photos": "https://www.tripadvisor.com/Hotel_Review-g60713-d80793-m66827-Reviews-Hotel_Nikko_San_Francisco-San_Francisco_California.html#photos", "styles": [ "Green", "Family" ], "subcategory": [ { "localized_name": "Hotel", "name": "hotel" } ], "subratings": { "0": { "localized_name": "Location", "name": "rate_location", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.5.svg", "value": "4.5" }, "1": { "localized_name": "Sleep Quality", "name": "rate_sleep", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.5.svg", "value": "4.5" }, "2": { "localized_name": "Rooms", "name": "rate_room", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.0.svg", "value": "4.0" }, "3": { "localized_name": "Service", "name": "rate_service", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.5.svg", "value": "4.5" }, "4": { "localized_name": "Value", "name": "rate_value", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.0.svg", "value": "4.0" }, "5": { "localized_name": "Cleanliness", "name": "rate_cleanliness", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.5.svg", "value": "4.5" } }, "timezone": "America/Los_Angeles", "trip_types": [ { "localized_name": "Business", "name": "business", "value": "1229" }, { "localized_name": "Couples", "name": "couples", "value": "1576" }, { "localized_name": "Solo travel", "name": "solo", "value": "274" }, { "localized_name": "Family", "name": "family", "value": "787" }, { "localized_name": "Friends getaway", "name": "friends", "value": "303" } ], "web_url": "https://www.tripadvisor.com/Hotel_Review-g60713-d80793-Reviews-Hotel_Nikko_San_Francis
프로젝트로 돌아가기