개발/카카오 챗봇
-
GPT API를 활용한 카카오 챗봇 만들기개발/카카오 챗봇 2023. 3. 24. 15:02
준비물 부계정 안드로이드폰(알뜰 유심칩 추가로 사서 공기계에 넣어서 사용중) 메신저봇R 앱 설치(링크) 사용 방법(링크) 과정 Open-ai 홈페이지에서 회원 가입 후 API KEY를 발급받는다. 안드로이드폰에서 메신저봇R을 설치하고, 사용 방법을 참고하여 스크립트를 생성한다. 스크립트 생성 후 소스 수정하기에서 아래에 코드를 복사하고 넣어준다. 1번 항목에서 발급받은 KEY 값을 코드안에 있는 your token에 넣어주고 재실행한다. 부계정 카카오톡을 친구 추가 후 사용한다. 코드 const scriptName = "GPT"; /** * (string) room * (string) sender * (boolean) isGroupChat * (void) replier.reply(message) * (b..