Skip to content

Instantly share code, notes, and snippets.

@jerry-jeon
Last active May 14, 2024 12:22
Show Gist options
  • Save jerry-jeon/d0fedc1d75586a5e8ccbd889ec7aa6ce to your computer and use it in GitHub Desktop.
Save jerry-jeon/d0fedc1d75586a5e8ccbd889ec7aa6ce to your computer and use it in GitHub Desktop.
LLM Model Q&As

96th Academy Awards

Q. Who's the winner of the Awards?

Based on the information provided, the major winners at the 96th Academy Awards were Oppenheimer (won 7 awards including Best Picture and Best Director), Poor Things (won 4 awards), and Barbie and The Boy and the Heron (each won 2 awards).

Q. Summarize the Awards in 3 bullet points

Here's a summary of the 96th Academy Awards in 3 bullet points:

- Oppenheimer won the most awards with 7, including Best Picture and Best Director for Christopher Nolan
- Cillian Murphy won Best Actor for Oppenheimer, and Emma Stone won Best Actress for Poor Things
- The Boy and the Heron became the first PG-13 animated film to win Best Animated Feature

Q. Which nominee won the most Awards?

According to the information provided, the film Oppenheimer won the most awards at the 96th Academy Awards with 7 wins, including Best Picture and Best Director for Christopher Nolan.

Sendbird FAQ

Q. How much it costs?

Sendbird's AI chatbot offers a 30-day free trial. After that, there are three paid plans - Starter, Pro, and Enterprise - with pricing based on the number of message credits consumed. You can view the complete pricing details on Sendbird's pricing page.

Q. What's the benefits of creating chatbot via sendbird?

Using Sendbird's AI chatbot interface provides benefits like suggested replies, streaming messages, feedback tracking, bot monitoring logs, and rich UI/message templates. It also allows integrating the chatbot with your product catalog and customer database for personalized recommendations based on purchase history and preferences.

PDF file - Commuting in the United States: 2022

Q. What trends were observed in public transportation usage among U.S. workers during the pandemic?

According to the knowledge base, public transportation ridership among U.S. workers was significantly impacted during the COVID-19 pandemic. Some key points:

- The share of U.S. workers commuting by public transit dropped from 5.0% in 2019 to just 2.5% in 2021, the lowest level ever recorded.

- In 2022, the share of workers using public transit rebounded slightly to 3.1%, but was still substantially lower than pre-pandemic levels in 2019.

- Major metropolitan areas that historically had high public transit usage saw steep declines in transit commuters between 2019 and 2022. For example, the New York metro area had around 700,000 fewer transit commuters in 2022 compared to 2019.

- In the Washington D.C. metro area, the number of transit commuters in 2022 was less than half the 2019 estimate.

- The San Francisco metro area experienced an even steeper relative decrease, with around 183,000 transit commuters in 2022 compared to 462,000 in 2019.

So in summary, public transit usage plummeted during the pandemic's initial phase in 2020-2021 and had only partially rebounded by 2022, remaining well below pre-pandemic levels across major U.S. metro areas.

Q. What impact did the pandemic have on the time of departure for U.S. workers commuting to their workplaces?

The knowledge base indicates that the COVID-19 pandemic had a notable impact on the time of departure for U.S. workers commuting to their workplaces.

Specifically:

- In 2022, around 83.3 million workers departed for the workplace during the "core commuting hours" of 6am to 8:59am. This was a significant increase from 2021, but still around 9 million fewer than the 92.1 million workers in this time window in 2019 before the pandemic.

- The number of workers leaving between 12am and 6am dropped from 20.5 million in 2019 to 19.6 million in 2022.

- The number leaving from 9am to 11:59am also dropped, going from 16.3 million in 2019 to 15.5 million in 2022.

So while there was a rebound in commuters during the core 6am-9am window in 2022 compared to 2021, the overall numbers were still well below pre-pandemic levels across all departure time windows.

This likely reflects the increase in home-based work during the pandemic, which reduced demand for commuting, especially during traditional peak hours. The knowledge base suggests this drop in core commuting hours contributed to reduced impacts on transportation infrastructure.

Q. Please summarize the report in three bullet points

Here is a three bullet point summary of the key findings from the report:

• The COVID-19 pandemic led to a significant increase in home-based work and corresponding decrease in commuting, especially by public transit, in the United States between 2019 and 2021. 

• While commuting levels partially rebounded in 2022 as pandemic restrictions eased, the share of workers commuting by driving alone or public transit remained well below pre-pandemic 2019 levels.

• The shift to home-based work persisted in 2022, contributing to fewer commuters during peak hours and reduced impacts on transportation infrastructure compared to before the pandemic.

Sendbird Docs

Q. What's the benefits using MessageCollection?

According to the knowledge base, some key benefits of using MessageCollection are:

1. View-driven interface: MessageCollection organizes handler methods and event callbacks around the currently displayed view. Event callbacks are triggered only for the channels or messages that are currently being displayed.

2. Automatic synchronization: MessageCollection automatically keeps the cached channels' information up-to-date without requiring additional code implementation.

3. Retrieves data from local cache and server: MessageCollection allows you to swiftly create a chat view that includes all data by retrieving data from both the local cache and the Sendbird server, ensuring you don't miss any message-related updates.

4. Simplifies chat view implementation: MessageCollection provides a streamlined way to create a chat view by handling the retrieval and synchronization of message data, reducing the amount of code you need to write.

5. Event handling: MessageCollection subscribes to message-related events through a handler or delegate, which listens to cached events and real-time events to direct the way the view is implemented.

In summary, the key benefits of using MessageCollection are a view-driven interface, automatic synchronization of cached data, retrieval of data from multiple sources, simplified chat view implementation, and organized event handling for messages.

Q. How can I send a message using sendbird platform api?

According to the knowledge base, you can use the "Send a message" action of the Sendbird Platform API to send a text message, a file message, or an admin message to a specific channel.

Here are the steps to send a message using the Platform API:

1. Make an HTTP POST request to the following endpoint:
📋
https://api-{API_BASE}/v3/{CHANNEL_TYPE}/{CHANNEL_URL}/messages
Replace `{API_BASE}` with the appropriate base URL, `{CHANNEL_TYPE}` with the type of channel (e.g., "open_channels" or "group_channels"), and `{CHANNEL_URL}` with the URL of the specific channel.

2. Include the message data in the request body. The format depends on the message type (text, file, or admin message).

For a text message, the request body should be:
📋
{
    "message_type": "MESG",
    "user_id": "USER_ID", 
    "message": "Hello, world!"
}
3. Authenticate the request by including the appropriate headers, such as the API token.

4. Send the HTTP request and handle the response.

The knowledge base does not provide a complete code example for sending a message using the Platform API. However, it does mention that you can use the Sendbird Chat SDKs or the Platform API to upload any type of file as a message.

Q. How can I install sendbird android chat v4 sdk

The knowledge base provides the following steps to install the Sendbird Android Chat SDK v4:

1. Add the Maven repository to your project-level `build.gradle` file:
📋
allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url "https://sendbird.jfrog.io/artifactory/sendbird-sdk-release" }
    }
}
2. Add the Sendbird SDK dependency to your app-level `build.gradle` file:
📋
dependencies {
    implementation "com.sendbird.sdk:sendbird-android-sdk:4.x.x"
}
Replace `4.x.x` with the latest version number.

3. Sync your project with the Gradle files.

4. Initialize the Sendbird SDK in your Application class:
📋
class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        SendbirdSdk.init(applicationContext, "YOUR_APP_ID")
    }
}
Replace `"YOUR_APP_ID"` with your Sendbird application ID.

The knowledge base does not provide any additional steps for installing the Sendbird Android Chat v4 SDK.

96th Academy Awards

Q. Who's the winner of the Awards?

Here are some of the winners from the 96th Academy Awards:

- Best Actor: Cillian Murphy
- Best Actress: Emma Stone
- Best Supporting Actor: Robert Downey Jr.
- Best Supporting Actress: Da'Vine Joy Randolph
- Best Director: Christopher Nolan
- Best Picture: "Oppenheimer" (co-winner)
- Best Original Screenplay: Justine Triet and Arthur Harari
- Best Original Score: Ludwig Göransson
- Best Original Song: Billie Eilish and Finneas O'Connell
- Best Animated Feature: Hayao Miyazaki and Toshio Suzuki for "The Boy and the Heron"
- Best International Feature Film: Jonathan Glazer
- Best Documentary Feature Film: Mstyslav Chernov (co-winner)
- Best Visual Effects: Takashi Yamazaki (co-winner)

These are just a selection of the categories and winners.

Q. Summarize the Awards in 3 bullet points

- Diverse Winners: The 96th Academy Awards featured a range of winners across various categories, including Cillian Murphy for Best Actor, Emma Stone for Best Actress, and Christopher Nolan for Best Director with the film "Oppenheimer" also winning Best Picture.
  
- Musical Highlights: Billie Eilish and Finneas O'Connell won Best Original Song, adding a musical accolade to the event, which also celebrated achievements in Original Score by Ludwig Göransson.

- Technical and International Recognition: The awards recognized international and technical achievements with Jonathan Glazer winning Best International Feature Film and Takashi Yamazaki securing an award for Best Visual Effects.

Q. Which nominee won the most Awards?

The film "Oppenheimer" won the most awards at the 96th Academy Awards, securing a total of 7 awards.

Sendbird FAQ

Q. How much it costs?

Sendbird AI chatbot is free for the first 30 days. After the free trial, there are three paid plans available: AI chatbot Starter plan, AI chatbot Pro plan, and AI chatbot Enterprise plan. The specific costs and details of what each plan offers can be found on Sendbird's pricing page.

Q. What's the benefits of creating chatbot via sendbird?

Creating a chatbot via Sendbird offers several benefits:

1. Powerful Chat Infrastructure: Sendbird has a robust chat infrastructure that has been developed over a decade, ensuring high performance and reliability for global brands.

2. Advanced Features: Sendbird's AI chatbot interface includes advanced features such as suggested replies, message streaming, feedback options, bot logs for monitoring, and a rich UI/message template.

3. Integration Capabilities: Sendbird's APIs allow the AI chatbot to access your product catalog and customer database, enabling it to make personalized recommendations based on previous purchase history, preferences, and browsing behaviors.

4. Ease of Integration: The AI chatbot can be easily integrated into various ecommerce platforms like Wix, Shopify, WooCommerce, and BigCommerce, making it versatile for different business needs.

5. Customization and Scalability: Sendbird offers different packages and plans that can be tailored to meet the needs of most businesses, depending on message volume and size.

These features make Sendbird a compelling choice for businesses looking to enhance their customer interaction through an AI-powered chatbot.

PDF file - Commuting in the United States: 2022

Q. What trends were observed in public transportation usage among U.S. workers during the pandemic?

During the COVID-19 pandemic, several key trends were observed in public transportation usage among U.S. workers:

1. Significant Decline in Ridership: There was a sharp decline in the number of U.S. workers using public transportation for commuting. The share dropped from 5.0 percent in 2019 to 2.5 percent in 2021, which was the lowest share ever recorded by the American Community Survey.

2. Slight Recovery in 2022: In 2022, there was a slight increase in public transportation usage, with the share rising to 3.1 percent. However, this was still significantly lower than the pre-pandemic levels observed in 2019.

3. Regional Variations: Major metropolitan areas, traditionally reliant on public transportation, saw substantial decreases in transit commuters. For example, in the New York metro area, there were roughly 700,000 fewer transit commuters in 2022 compared to 2019. Similarly, in the San Francisco metro area, the number of transit commuters in 2022 was less than half of the 2019 estimate.

These trends highlight the profound impact of the pandemic on public transportation usage, reflecting broader changes in commuting behaviors and the shift towards more home-based work.

Q. What impact did the pandemic have on the time of departure for U.S. workers commuting to their workplaces?

The COVID-19 pandemic significantly impacted the time of departure for U.S. workers commuting to their workplaces in several ways:

1. Reduction in Commuters During Core Hours: There was a noticeable decrease in the number of workers departing for work during the core commuting hours of 6 a.m. to 8:59 a.m. In 2022, about 9 million fewer workers left for work during these hours compared to 2019.

2. Overall Decrease in Early Morning Departures: The number of workers leaving for work between 12 a.m. and 6 a.m. also dropped from 20.5 million in 2019 to 19.6 million in 2022.

3. Shift in Commuting Patterns: These changes reflect a broader shift in commuting patterns, likely influenced by the increase in home-based work and the flexibility it offers. This shift contributed to a roughly 10 percent drop in commuters during core commuting hours, affecting transportation infrastructure and the overall commuting experience.

These trends indicate that the pandemic led to a shift in the timing of commutes, with fewer workers adhering to traditional peak commuting hours, which has implications for traffic patterns and public transportation scheduling.

Q. Please summarize the report in three bullet points

- Persistent Shift to Home-Based Work: The COVID-19 pandemic led to a significant and lasting increase in home-based work among U.S. workers, contributing to a roughly 10 percent reduction in commuters during core commuting hours from 2019 to 2022.

- Decline in Public Transportation Usage: There was a notable decline in the use of public transportation for commuting, with the share of public transportation commuters not returning to pre-pandemic levels by 2022, reflecting ongoing changes in commuting behaviors.

- Changes in Commuting Times: The pandemic influenced the timing of commutes, with fewer workers traveling during traditional peak hours, leading to altered traffic patterns and impacts on transportation infrastructure.

Sendbird Docs

Q. What's the benefits using MessageCollection?

The `MessageCollection` offers several benefits for managing chat functionalities in applications:

1. Efficient Data Handling: It allows you to create a chat view that includes all necessary data efficiently. This is particularly useful for applications that need to handle large volumes of messages and ensure smooth user interactions.

2. Event-Driven Updates: The `MessageCollection` subscribes to message-related events through its handler (e.g., `MessageCollectionHandler` or `SBSMMessageCollectionDelegate`). This setup ensures that the chat view is updated in real-time as new messages are received or existing messages are modified, without the need for manual refreshes.

3. Synchronization: It supports synchronization of messages by listening to both cached and real-time events. This dual listening helps in maintaining a consistent and up-to-date view for the user, reflecting changes across different user sessions and devices promptly.

4. Local Caching and Server Retrieval: The `MessageCollection` retrieves data from both the local cache and the Sendbird server. This hybrid approach reduces latency, decreases network usage, and provides a faster, more responsive user experience, even when offline or in poor network conditions.

5. Customization and Flexibility: Developers can customize the behavior of the `MessageCollection` by setting various parameters and options, such as message filters and limits. This flexibility allows developers to tailor the chat experience to the specific needs of their application and user base.

Overall, using `MessageCollection` simplifies the implementation of a robust and efficient chat system, enhancing both the development process and the end-user experience.

Q. How can I send a message using sendbird platform api?

To send a message using the Sendbird Platform API, you can follow these steps:

1. Choose the Message Type: Decide whether you want to send a text message, a file message, or an admin message. Each type of message has different parameters and uses.

2. Prepare the API Request: You need to make an HTTP POST request to the appropriate Sendbird server endpoint. The endpoint to send a message is typically structured as follows:
📋
POST https://api-{application_id}.sendbird.com/v3/group_channels/{channel_url}/messages
Replace `{application_id}` with your Sendbird application ID and `{channel_url}` with the specific channel's URL where you want to send the message.

3. Set HTTP Headers: Include the following HTTP headers in your request:
   - `Content-Type: application/json`
   - `Api-Token: {api_token}` (replace `{api_token}` with your actual Sendbird API token)

4. Create the Request Body: Depending on the type of message you are sending (text, file, or admin), your JSON payload will vary. Here’s an example of a JSON payload for sending a text message:
📋
   {
     "message_type": "MESG",
     "user_id": "{user_id}",
     "message": "Hello, this is a message."
   }
   
Replace `{user_id}` with the ID of the user sending the message.

5. Send the Request: Use a tool like cURL, Postman, or your preferred HTTP client in your programming environment to send the request. Here’s an example using cURL:
📋
   curl -X POST \
     https://api-{application_id}.sendbird.com/v3/group_channels/{channel_url}/messages \
     -H "Content-Type: application/json" \
     -H "Api-Token: {api_token}" \
     -d '{
       "message_type": "MESG",
       "user_id": "{user_id}",
       "message": "Hello, this is a message."
     }'
   
6. Handle the Response: The Sendbird API will respond with details of the sent message if successful, or an error message if something went wrong. You can use this response to confirm the message was sent and update your application UI accordingly.

This process allows you to programmatically send messages in a Sendbird channel using the Platform API, which is useful for integrating Sendbird's messaging capabilities into various types of applications, automating messaging functions, or managing messages from server-side systems. By following the outlined steps, you can effectively utilize the Sendbird Platform API to enhance communication features in your application, ensuring a dynamic and interactive user experience.

Q. How can I install sendbird android chat v4 sdk

To install the Sendbird Android Chat SDK v4, follow these steps:

1. Ensure Prerequisites:
   - Android 5.0 (API level 21) or higher
   - Java 8 or higher
   - Android Gradle plugin 3.4.2 or higher

2. Add the Sendbird Repository:
   - Open your project in Android Studio and navigate to your root-level `build.gradle` file. Add the following to the `repositories` section:
📋
     maven { url "https://repo.sendbird.com/public/maven" }
     
3. Add SDK Dependencies:
   - Navigate to your module-level `build.gradle` file (usually `app/build.gradle`). Add the following line to the `dependencies` section:
📋
     implementation "com.sendbird.sdk:sendbird-android-sdk:4.0.3"
     
4. Sync Your Project:
   - After adding the dependencies, sync your Gradle project by clicking on the 'Sync Now' prompt in the bar that appears in Android Studio.

5. Initialize the SDK:
   - In your application class or main activity, initialize the Sendbird SDK with your application ID from the Sendbird Dashboard:
📋
     import com.sendbird.android.SendbirdChat;
     public class MyApplication extends Application {
         @Override
         public void onCreate() {
             super.onCreate();
             SendbirdChat.init(new SendbirdChat.Options(APP_ID, this));
         }
     }
     
- Replace `APP_ID` with your actual Sendbird application ID.

6. Configure ProGuard (Optional):
   - If you are using ProGuard for code obfuscation and optimization, add rules to keep Sendbird SDK classes from being obfuscated. Add the following lines to your ProGuard configuration file:
📋
-keep class com.sendbird.android.** { *; }
     -keepattributes Signature
7. Run Your Application:
   - Build and run your application to ensure that the SDK is integrated correctly.

By following these steps, you will have successfully integrated the Sendbird Chat SDK v4 into your Android application, allowing you to utilize its messaging capabilities.

96th Academy Awards

Q. Who's the winner of the Awards?

I'm happy to help! However, I need to clarify that there are many awards ceremonies throughout the year, and I'd like to know which specific awards you're referring to.

If you're asking about the 96th Academy Awards (also known as the Oscars), the winners were announced on March 27, 2023. Here are some of the notable winners:

* Best Picture: "Everything Everywhere All at Once"
* Best Director: Daniel Kwan and Daniel Scheinert for "Everything Everywhere All at Once"
* Best Actor: Brendan Fraser for "The Whale"
* Best Actress: Michelle Yeoh for "Everything Everywhere All at Once"
* Best Supporting Actor: Ke Huy Quan for "Everything Everywhere All at Once"
* Best Supporting Actress: Jamie Lee Curtis for "Everything Everywhere All at Once"

If you're asking about a different awards ceremony, please let me know the name of the awards, and I'll do my best to provide the winners!

Q. Summarize the Awards in 3 bullet points

Here are three bullet points summarizing the 96th Academy Awards:

• Best Picture and Director: "Oppenheimer" won Best Picture, and Christopher Nolan won Best Director for his work on the film.
• Acting Awards: Cillian Murphy won Best Actor for his role in "Oppenheimer", Emma Stone won Best Actress for her role in "Poor Things", Robert Downey Jr. won Best Supporting Actor, and Da'Vine Joy Randolph won Best Supporting Actress.
• Other notable wins: "The Boy and the Heron" won Best Animated Feature, "Napoleon" won Best Visual Effects, and Ludwig Göransson won Best Original Score for his work on "Maestro".

Q. Which nominee won the most Awards?

According to the knowledge base, "Oppenheimer" received a total of 13 nominations and won 7 awards, making it the nominee that won the most awards.

Sendbird FAQ

Q. How much it costs?

Sendbird's AI chatbot is free for the first 30 days. After that, there are three paid plans: AI chatbot Starter plan, AI chatbot Pro plan, and AI chatbot Enterprise plan. The pricing model is based on the number of message credits, which depends on the LLM model used. For example, 1 message credit applies to 1 bot message for GPT-3.5 turbo, Llama 2, and Solar LLMs, while 10 message credits apply to 1 bot message for GPT-4-turbo and Claude 3. There is also a $5 overage fee for every 1,000 message credits.

Q. What's the benefits of creating chatbot via sendbird?

According to the knowledge base, the benefits of creating a chatbot via Sendbird include:

* Easy Integration: Sendbird provides a simple and easy way to integrate a chatbot into an ecommerce website, including those built on Wix, Shopify, WooCommerce, and BigCommerce.
* Advanced Features: Sendbird's chatbot interface provides advanced features such as suggested replies, streaming messages, feedback, and bot log for monitoring.
* Access to Customer Data: Sendbird's APIs allow the chatbot to access customer data and preferences, enabling personalized recommendations and offers.
* Customization: Sendbird's chatbot interface allows for customization of the chatbot's responses and behavior using scripted answers, prompt engineering, and function calls.
* Scalability: Sendbird's chat infrastructure is designed to handle high volumes of conversations, making it ideal for large-scale customer support operations.
* Support for Multiple Languages: Sendbird's chatbot interface supports multiple languages, including English, Spanish, French, German, Chinese, Japanese, Korean, Italian, Russian, and Portuguese.

PDF file - Commuting in the United States: 2022

Q. What trends were observed in public transportation usage among U.S. workers during the pandemic?

According to the American Community Survey (ACS), the trends observed in public transportation usage among U.S. workers during the pandemic were:

* Sharp decline: The share of U.S. workers commuting by transit dropped from 5.0% in 2019 to 2.5% in 2021, the lowest share ever recorded by the ACS.
* Partial rebound: By 2022, the share of workers commuting by transit increased to 3.1%, still substantially lower than in 2019.
* Variation by metropolitan area: The decline in transit commuting was more pronounced in some metropolitan areas, such as New York, Washington, D.C., and San Francisco, where the number of transit commuters decreased significantly.

These trends suggest that public transportation usage declined significantly during the pandemic, but partially recovered as restrictions were lifted and workers returned to their workplaces.

Q. What impact did the pandemic have on the time of departure for U.S. workers commuting to their workplaces?

According to the American Community Survey (ACS), the pandemic had the following impact on the time of departure for U.S. workers commuting to their workplaces:

* Shift to earlier departures: The number of workers leaving for work between 6 a.m. and 8:59 a.m. increased, while the number of workers leaving between 9 a.m. and 11:59 a.m. decreased.
* Decrease in late-night departures: The number of workers leaving for work between 12 a.m. and 6 a.m. decreased.

These changes suggest that the pandemic led to a shift towards earlier commute times, with more workers departing for work during the traditional morning rush hour.

Q. Please summarize the report in three bullet points

Here are three bullet points summarizing the report:

• The COVID-19 pandemic led to a significant shift towards home-based work, with the percentage of workers working from home increasing from 5.7% in 2019 to 15.2% in 2022.

• The pandemic also led to changes in commuting behaviors, including a decline in driving alone and public transportation usage, and an increase in carpooling and flexible work arrangements.

• Despite some recovery, public transportation usage remained below pre-pandemic levels, and commute times and departure times also changed, with more workers departing for work during traditional morning rush hour.

Sendbird Docs

Q. What's the benefits using MessageCollection?

Using MessageCollection provides several benefits, including:

1. Efficient data retrieval: MessageCollection allows you to swiftly create a chat view that includes all data, retrieving messages from both the local cache and Sendbird server.

2. Real-time updates: MessageCollection provides real-time updates, ensuring that your chat view is always up-to-date with the latest messages.

3. Simplified implementation: With MessageCollection, you don't need to implement complex logic to handle message caching, pagination, and real-time updates.

4. Improved performance: By leveraging the local cache and Sendbird server, MessageCollection reduces the number of API requests, resulting in improved performance and reduced latency.

5. Easy migration from SyncManager: If you're already using SyncManager, MessageCollection provides a seamless migration path, allowing you to take advantage of the latest features and improvements.

6. Flexibility and customization: MessageCollection provides a flexible and customizable solution, enabling you to tailor your chat view to your specific use case and requirements.

7. Reduced development time: By using MessageCollection, you can focus on building your chat application's core features, rather than spending time on implementing complex message handling logic.

Overall, MessageCollection simplifies the process of building a chat application, providing a robust, efficient, and scalable solution for managing messages and chat views.

Q. How can I send a message using sendbird platform api?

To send a message using the Sendbird Platform API, you can make a `POST` request to the `/messages` endpoint. Here's an example of how to do it:

Request:
📋
POST https://api.sendbird.com/v3/group_channels/{channel_url}/messages
Request Body:
📋
{
  "message_type": "MESG",
  "user_id": "{user_id}",
  "message": "Hello, world!",
  "data": ""
}
Parameters:

* `channel_url`: The URL of the channel where you want to send the message.
* `user_id`: The ID of the user who is sending the message.
* `message_type`: The type of message you want to send (e.g., `MESG` for a standard message).
* `message`: The text of the message you want to send.
* `data`: Optional metadata associated with the message.

Authentication:

Make sure to include your Sendbird API token in the `Authorization` header of your request:
📋
Authorization: Bearer {YOUR_API_TOKEN}
Response:

If the request is successful, you'll receive a `201 Created` response with the newly created message object:
📋
{
  "message_id": 1234567890,
  "channel_url": "sendbird_group_channel_12345",
  "user_id": "jeff",
  "message_type": "MESG",
  "message": "Hello, world!",
  "created_at": 1643723400
}
That's it! You've successfully sent a message using the Sendbird Platform API.

For more information, refer to the Sendbird documentation: <https://sendbird.com/docs/chat/platform-api/v3/message/send-a-message>

Q. How can I install sendbird android chat v4 sdk

To install Sendbird Android Chat SDK v4, follow these steps:

Step 1: Add the repository

In your `settings.gradle` file, add the following code:
📋
dependencyResolutionManagement {
    repositories {
        google()
        jcenter()
        maven { url "https://repo.sendbird.com/public/maven" }
    }
}
Step 2: Add the dependency

In your `build.gradle` file, add the following dependency:
📋
dependencies {
    implementation 'com.sendbird.sdk:sendbird-android-sdk:4.0.3'
}
Step 3: Initialize the SDK

In your app's `Application` class, initialize the SDK with your App ID:
📋
import com.sendbird.sdk.SendbirdChat;
public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        SendbirdChat.init("YOUR_APP_ID", this);
    }
}
Replace `YOUR_APP_ID` with your actual App ID from the Sendbird Dashboard.

That's it! You've successfully installed Sendbird Android Chat SDK v4.

For more information, refer to the Sendbird documentation: <https://sendbird.com/docs/chat/sdk/v4/android/getting-started/send-first-message>

This is the Q&A lists that is used for the article.

I used for type of sources to test the RAG (knowledge base) feature of Sendbird.


Questions

96th Academy Awards Q. Who's the winner of the Awards? Q. Summarize the Awards in 3 bullet points Q. Which nominee won the most Awards?

Sendbird FAQ Q. How much it costs? Q. What's the benefits of creating chatbot via sendbird?

PDF file - Commuting in the United States: 2022 Q. What trends were observed in public transportation usage among U.S. workers during the pandemic? Q. What impact did the pandemic have on the time of departure for U.S. workers commuting to their workplaces? Q. Please summarize the report in three bullet points

Sendbird Docs Q. What's the benefits using MessageCollection? Q. How can I send a message using sendbird platform api? Q. How can I install sendbird android chat v4 sdk

Frequently Asked Questions

Pricing

How much does Sendbird AI chatbot cost?

Sendbird's AI chatbot is free for the first 30 days. Then we offer three paid plans depending on a company’s requirements - AI chatbot Starter plan, AI chatbot Pro plan and AI chatbot Enterprise plan are available. For a complete view of what is offered with each AI chatbot plan, visit our pricing page.

What is the pricing model for Sendbird AI chatbot?

Sendbird primary charges based on the number of message credits, or number of messages sent by the bot. This includes welcome messages, answers to questions, and custom responses. Each paid AI chatbot plan also provides a different number of AI chatbots, files or links for data ingestion, workflows and function calls. AI chatbot Pro and Enterprise plans allow for more customization of the experience.

What are the different packages I can purchase from Sendbird for its AI chatbot?

Sendbird offers a 30 day free trial and then three paid plans to meet the needs of most businesses based on message volume and size. Our paid plans are outlined in great detail on our pricing page.

How does Sendbird AI chatbot calculate message credits?

Message credit consumption depends on LLM model. 1 message credit applies to 1 bot message for GPT-3.5 turbo, Llama 2 and Solar LLMs. 10 message credits apply to 1 bot message for GPT-4-turbo and Claude 3. $5 overage fee will be applied for every 1,000 message credit.

Can I track the consumption of my message credits used with Sendbird AI chatbot?

Yes, we allow you to easily track consumption of your credits on our product dashboard.

If I am a Sendbird Chat customer, how do I purchase AI chatbot?

If you are already and paying Sendbird customer, you should talk to your Account Manager about adding AI chatbot to your plan. If you do not have a named Account Manager, then submit your information on our Talk to sales form.

When do message credits reset?

Message credits reset on the 1st day of each month.

Will I be able to purchase more message credits if I run out?

Yes, customers on one of Sendbird’s paid AI chatbot plans can work with our sales team to purchase additional credits if needed. All you have to do is fill out this Talk to sales form.

Are all AI chatbot features available in the free trial?

Yes! Free trial offers all of the AI chatbot features for AI chatbot. Free trial does not include IP whitelisting, HIPAA compliance or ticketed support like our paid plans. For a detailed comparison of our plans, visit this page: https://sendbird.com/pricing.

Are there limitations to the characters per bot message?

No, your AI chatbot can respond in how many characters are necessary and one message, however many characters, is equal to one message credit.

What is the limit for data ingestion?

The number of files or URLs you can add for the bot to analyze and ingest depends on your Sendbird AI chatbot plan. For the free trial, you are able to upload 5 files or 5 URLs or a combination of files and URLs for a total of 5. The dashboard will indicate how many files you have uploaded and how many remain in your plan. Paid plans allow for more files and URLs. This is explained in detail on our pricing page.

Can I increase the file size limit for my AI chatbot?

Yes, you can request to increase the file size limitation for Sendbird AI chatbot.Submit a request to talk to our sales team about how you can increase the file limit for your AI chatbot: https://sendbird.com/contact-sales

What happens when my free trial expires?

When your 30-day free trial expires, Sendbird will delete your account and notify you with an email. You will have to create a new account with a new email address to start the free trial again. You can select a paid plan to reactivate your expired trial.

How do I get support during the free trial period?

Sendbird will provide support through our online community for free trial users. Paid users will get access to our ticketing support system and be able to submit service tickets through the dashboard.

Is it possible to point the Sendbird AI chatbot service to an external API like Mixpanel or Firestore DB to have it be able to call data from those services for chatbot responses? A user story for this would be a user querying: "Can you show me 5 users near Los Angeles who have 10k or more followers on TikTok with the beauty & cosmetics tag “X’?"

What we would need from you is an endpoint to your service that we will use to pull the right data from your database. You can define those endpoints in the Sendbird Dashboard (Function Calls). Once you define the endpoints, we will add them to GPT and at the right times, GPT will guide Sendbird to call the given endpoint and retrieve the data. The data will be fed back to GPT, which it would use to create an answer. So for instance, let's say that we have an endpoint called company.com/most-popular-items, then we would be able to call the endpoint to retrieve the result when users ask for what's popular.

AI chatbot product page

What type of files can I upload to train the bot?

Files can be uploaded to the dashboard to provide your AI chatbot with specific knowledge it needs to answer inquiries. Sendbird supports the following file formats: .json, .txt, .md, .csv and .pdf. The maximum file size is 5MB per file.

How come it is taking so long to add a URL?

When you add a primary URL with many subpages (ex: www.sendbird.com), the system will take a lot of time to digest the parent and all the child pages connected to that URL. If you have a specific URL (ex: https://sendbird.com/products/ai-chatbot/chatgpt-integration) , the system will take less time because there are no child pages. The maximum number of child pages per URL is 100.

What languages do AI chatbots support?

AI chatbots can communicate in English, Spanish, French, German, Chinese (Simplified and Traditional), Japanese, Korean, Italian, Russian, and Portuguese.

What LLMs does Sendbird support for its AI chatbot?

We currently support 5 models: ChatGPT3.5 and 4, Claude 3, Llama2 70B and Solar. ****These are all general models without any specific vertical focus or use case. Sendbird’s default model in the free trial is ChatGPT4. We recommend that clients first use GPT4 to get the quality they want and then try to optimize with prompt engineering, better files, and fine-tuning (if needed).

Can I use my own LLM with Sendbird’s AI chatbot?

Yes, Sendbird can power a client's own LLM if the client is willing to use their engineering resources. They can use Sendbird’s AI chatbot interface to connect to their model and exchange messages.

Why would I choose to use Sendbird’s AI chatbot interface with my LLM?

Sendbird is built on a powerful chat infrastructure built over the past decade to guarantee performance for leading global brands and provide advanced chatbot features like:

  • Suggested replies (quick replies) to message
  • Streaming messages
  • Feedback (Thumbs up / down)
  • Bot Log for monitoring
  • Rich UI / Message Template****

Can Sendbird’s AI chatbot integrate into my ecommerce website?

Sendbird provides the code for its AI chatbot you can easily copy and paste into just about any ecommerce website including those built on Wix, Shopify, WooCommerce and BigCommerce. Learn more here: https://sendbird.com/docs/ai-chatbot/guide/v1/widget-integration/shopify

How can I build an AI chatbot that makes personal product recommendations?

Using Sendbird’s APIs, a developer can give your AI chatbot access to your product catalog and customer database to make recommendations based on previous purchase history, preferences and browsing behaviors. Additionally, the AI chatbot will glean useful information that is shared through real-time conversation with the customer on your website.

How can I ensure the response quality of an AI chatbot?

AI chatbots, especially those powered by Large Language Models (LLMs), generate responses based on statistical models. While these answers are often coherent, they may sometimes be factually incorrect. To enhance your AI chatbot's response quality, you can employ techniques such as prompt engineering, which involves crafting directions (prompts) to guide the chatbot's responses effectively. For example,  you can define in a prompt the tone and persona of your AI chatbot and request that it only respond to questions related to your business. Additionally, content ingestion can expand your chatbot's knowledge base with your specific business information. Implementing scripted answers prevents the AI chatbot from generating approximative answers for common queries for which you already have accurate answers. Last,  you can implement function calls for the AI chatbot to fetch real-time data from third-party systems via API calls.

Can Sendbird’s AI chatbot be hosted on premises and without an internet connection at all?

All of our services are hosted through Amazon Web Services in the cloud (not on-premise) and require an internet connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment