AI로 자동 댓글 달기: 이미 SnapChat을 사용 중이신가요?

ChatGpt(이하 ChatGPT)의 Auto Response API를 이용하면 고객 문의에 빠르고 적절하게 대응할 수 있습니다.
FAQ 페이지 또는 고객 서비스를 자동화하여 고객 만족도를 높이고 비용을 절감할 수 있습니다.
ChatGpt 자동 응답 API는 자동 응답, 대화 및 번역 기능을 제공하는 GPT-3 및 GPT-4 기반의 챗봇 플랫폼입니다.
ChatGPT의 양과 사용량, 어디에 사용되는지 파헤쳐 봅시다.

ChatGPT 사용

My AI for Snapchat+는 ChatGPT API를 사용하여 자동 회신 서비스를 실행합니다.
MY AI는 Snapchatters에게 몇 초 만에 추천을 하고 친구에게 하이쿠를 쓸 수 있는 친근하고 사용자 정의 가능한 챗봇을 제공합니다.
커뮤니케이션과 메시징이 일상적인 Snapchat에는 매달 7억 5천만 명의 Snapchat 사용자가 있습니다.

채팅GPT 비율

아래 수수료는 토큰 1000개 기준이며, 토큰 100개 질문의 평균 토큰 가치를 계산하면 GPT-3 기준으로 0.0002 USD이며 원화로 환산하면 비용이 발생합니다.
약 0.26 증가했습니다.
(3월 28일 기준 1296.62원)


https://openai.com/pricing

ChatGPT를 사용하기 위해 Python으로 YouTube에 액세스

from selenium import webdriver
import time

# Set up ChromeDriver options
options = webdriver.ChromeOptions()
options.add_argument('--disable-extensions')
options.add_argument('--headless') # Run ChromeDriver in headless mode (no GUI)

# Replace "/path/to/chromedriver" with the path to your own ChromeDriver executable
driver = webdriver.Chrome("/path/to/chromedriver", options=options)

# Navigate to the YouTube video you want to comment on
driver.get("https://www.youtube.com/watch?v=YOUR_VIDEO_ID")

# Wait for the page to fully load
time.sleep(5)

# Find the comment box element and click on it
comment_box = driver.find_element_by_css_selector(".style-scope.ytd-commentbox")
comment_box.click()

# Type your comment into the comment box
comment_input = driver.find_element_by_css_selector("#textarea")
comment_input.send_keys("Your comment goes here.")

# Submit the comment
submit_button = driver.find_element_by_css_selector("#submit-button")
submit_button.click()

# Wait for the comment to be posted
time.sleep(5)

# Close the ChromeDriver instance
driver.quit()

“YOUR_VIDEO_ID”를 댓글을 달고 싶은 YouTube 비디오의 실제 ID로 바꾸고 “/path/to/chromedriver”를 ChromeDriver 실행 파일의 실제 경로로 바꾸십시오.

YouTube의 자동 댓글은 YouTube 서비스 약관 및 커뮤니티 가이드라인을 위반할 수 있습니다.
따라서 이 코드는 법적 목적으로만 사용하십시오.

ChatGPT API 사용

아래 코드는 ChatGPT의 Python 가이드입니다.
API를 통해 질문하면 ChatGPT에서 답변을 받을 수 있습니다.

# Note: you need to be using OpenAI Python v0.27.0 for the code below to work
import openai

openai.ChatCompletion.create(
  model="gpt-3.5-turbo",
  messages=(
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Who won the world series in 2020?"},
        {"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
        {"role": "user", "content": "Where was it played?"}
    )
)

{
 'id': 'chatcmpl-6p9XYPYSTTRi0xEviKjjilqrWU2Ve',
 'object': 'chat.completion',
 'created': 1677649420,
 'model': 'gpt-3.5-turbo',
 'usage': {'prompt_tokens': 56, 'completion_tokens': 31, 'total_tokens': 87},
 'choices': (
   {
    'message': {
      'role': 'assistant',
      'content': 'The 2020 World Series was played in Arlington, Texas at the Globe Life Field, which was the new home stadium for the Texas Rangers.'},
    'finish_reason': 'stop',
    'index': 0
   }
  )
}

자세한 내용은 ChatGPT 사이트를 방문하세요.

https://platform.openai.com/docs/guides/chat/introduction

OpenAI API

OpenAI에서 개발한 새로운 AI 모델에 액세스하기 위한 API

platform.openai.com