Building a ChatGPT Slackbot with Javascript

  Рет қаралды 372

Code & Stuff

Code & Stuff

Күн бұрын

Join me as I build a ChatGPT Slackbot using the Slack Bolt Javascript Library!
All code can be found here: github.com/ChristianAlexander...
00:00 - Intro
00:37 - Hello World
1:10 - Wiring it up
1:54 - Feeding it some threads
3:13 - Improving the UX
3:54 - DEMO
4:07 - Summary

Пікірлер: 18
@DhirenShahMay
@DhirenShahMay 6 ай бұрын
Hi. it is working, thank you so much. Initially I was struggling with 429 error, it resolved after I added credits. Need your guidance to implement Dell-E.
@sauravsatpathy5407
@sauravsatpathy5407 5 ай бұрын
Is it possible to test from Postman?If yes can you tell us the step for it?
@CodeAndStuff
@CodeAndStuff Ай бұрын
The Slack Bolt SDK exchanges secret values with and connects directly to Slack. I don't think there's a way to test this from Postman. For more details, check out the Bolt docs: slack.dev/bolt-js/tutorial/getting-started
@renatomeireles9596
@renatomeireles9596 8 ай бұрын
Hi, i tried implement ur amazing bot but slack is asking me to answer herokus request URL with a challenge, can you help me with it? Thanks in advance. Also really good work with the video, it was clean as water ur explanation, keep going.
@CodeAndStuff
@CodeAndStuff 8 ай бұрын
Hi there! When I saw a similar error, I had to update the URL to be /slack/events (the /slack/events part is critical). The bolt framework should automatically handle the URL challenge. Slack documents this step with their own bot here: slack.dev/bolt-js/deployments/heroku#deploy-the-app
@renatomeireles9596
@renatomeireles9596 8 ай бұрын
@@CodeAndStuff Thanks for the fast reply. Yeah, i tried, even got the CLI to check the url but the message i get still is Your request URL responded with an HTTP error. Update your URL to receive a new request and challenge value. :(
@CodeAndStuff
@CodeAndStuff 8 ай бұрын
@@renatomeireles9596, that sounds frustrating-I hope this can help: Make sure all of the environment variables from the readme are set properly. Beyond that, it might be worth looking at the logs from the Heroku dyno (devcenter.heroku.com/articles/logging#view-logs) to see if anything is erroring out. Also, if you set `SLACK_APP_TOKEN`, it might be running in socket mode (api.slack.com/apis/connections/socket). This mode doesn't use webhooks and instead uses websockets to make the connection. Again, the heroku log should say if the app is started in socket mode.
@renatomeireles9596
@renatomeireles9596 8 ай бұрын
@@CodeAndStuff Thanks Buddy, i found what i was doing wrong. But now the app is crashing after i ask like 2 questions to the bot... [INFO] socket-mode:SocketModeClient:0 Now connected to Slack Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch Stopping process with SIGKILL Process exited with status 137 State changed from starting to crashed Do you know what could be?
@CodeAndStuff
@CodeAndStuff 8 ай бұрын
Ah, there it is! The app is running in socket mode, which prevents it from responding to HTTP requests. Heroku runs health checks and determines the app is not alive. To fix this, get rid of the `SLACK_APP_TOKEN` environment variable. That will cause the app to run in server mode, allowing Heroku and Slack to connect properly.
10X Your Code with ChatGPT:  How to Use it Effectively
17:14
Dave's Garage
Рет қаралды 325 М.
5 INCREDIBLE Ways I Used ChatGPT For My JavaScript Projects
9:59
James Q Quick
Рет қаралды 8 М.
¡Puaj! No comas piruleta sucia, usa un gadget 😱 #herramienta
00:30
JOON Spanish
Рет қаралды 22 МЛН
О, сосисочки! (Или корейская уличная еда?)
00:32
Кушать Хочу
Рет қаралды 6 МЛН
How To Use ChatGPT With JavaScript (NodeJS & Express)
5:56
Tom Is Loading
Рет қаралды 58 М.
Building Slack AI Assistants with Python & LangChain
28:31
Dave Ebbelaar
Рет қаралды 31 М.
How to Track Faces in Live Video with Elixir: Quick Tutorial
3:36
ASMR Programming - Weather App With Javascript - No Talking
20:30
AsmrProg
Рет қаралды 2,6 МЛН
Build A Slackbot
34:02
Traversy Media
Рет қаралды 132 М.
Is ChatGPT actually useful for coding?
21:40
Web Dev Cody
Рет қаралды 342 М.
Rust for TypeScript devs : Borrow Checker
8:49
ThePrimeagen
Рет қаралды 210 М.
Stream OpenAI Chat Completions Like ChatGPT in JavaScript
17:17
Codevolution
Рет қаралды 23 М.
Build and Deploy Your Own ChatGPT AI App in JavaScript | OpenAI, Machine Learning
1:01:47
#miniphone
0:18
Miniphone
Рет қаралды 3,7 МЛН
Apple, как вас уделал Тюменский бренд CaseGuru? Конец удивил #caseguru #кейсгуру #наушники
0:54
CaseGuru / Наушники / Пылесосы / Смарт-часы /
Рет қаралды 4,1 МЛН
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 6 МЛН
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 1,8 МЛН