Building Slack AI Assistants with Python & LangChain

preview_player
Показать описание

Here's a step-by-step guide to creating a Slack bot, installing it in a workspace, setting up Python code with LangChain and Flask, and using ngrok.

Interacting with AI agents via Slack provides a more natural way of communication and provides an integration with your team's workflow and allows for the integration of multiple bots for various tasks. This can improve efficiency and streamline communication, while also allowing the AI agents to become an integral part of your team.

🔗 Links

⏱️ Timestamps
00:00 Introduction
00:44 What we will cover in this video
01:36 Why create a Slack bot?
04:05 Slack setup
07:07 Python setup
13:32 Server setup
17:23 Custom function setup
23:56 Why not just use ChatGPT?
25:54 What is Data Freelancer?

👋🏻 About Me
Hey there, my name is @daveebbelaar and I work as a freelance data scientist and coach. You've stumbled upon my YouTube channel, where I give away all my secrets when it comes to working with data. I'm not here to sell you any data course — everything you need is right here on YouTube. Making videos is my passion, and I've been doing it for 18 years. I just genuinely enjoy helping people.

Рекомендации по теме
Комментарии
Автор

You're a legend. I started learning Python just two months ago and I really didn't know anything about coding. Today, I can't believe what I'm able to do, so thanks a lot. My next goal will be to create an assistant who can write code for me. I need to practice LangChain and Prompt Engineering.

fathimetalsi
Автор

You are a rock star, Dave! Great tutorial. Have watched several of your videos on Langchain and I just finished building the slack bot thanks to your excellent instruction and overview. Thank you.

aibeginnertutorials
Автор

Wow, thank you for this nice step-by-step workflow. :)

PhilipeNoBrasil
Автор

Thanks for sharing. I have adapted to use with CrewAI

kepenge
Автор

haha nice new team member 😉, great guide, thank you, Dave. I know there are a lot of agents in LangChain supporting different documents, so it would be really exciting and helpful to handle them in one of the Slack channels.

i.zhirnov
Автор

Excellent video - With Langchain, you can surpass GPT limitations by incorporating tools and vector databases

micbab-vgmu
Автор

Hey Dave when are you going to do part two of the video showing how to get Emma to do different tasks? A coding bot would be nice or further going into using a company’s db to feed back info when Emma is asked would also be great! Awesome video by the way thank you!

_slickyricky
Автор

thanks for sharing, it helps a lot, loving you!

kailai
Автор

your videos are great, really helping people man

NishanSinghSteinmann
Автор

This is brilliant. It would be nice to see how to structure multiple bots in different channels. Should we bulit multiple bots in one app or one bot per app?

AngusLou
Автор

Emma's comments are absolute gold! 😆

krisszostak
Автор

Dave it's a great tutorial! Just working on setting up a slack agent, unfortunately I am stuck at 15:30 as the slack API doesn't verify the URL. I get the error message "Your URL didn't respond with the value of the 'challange' parameter". Any thoughts what the issue could be? I am running the ngrok server and see requests coming in when checking localhost:4040. Any help would be highly appreciated. THx

SebastianGruber-ulkc
Автор

Great video. Thanks for the walkthrough. Why did you use 3.5 turbo instead of GPT-4?

ed
Автор

Good one!, but suggest to not delegate delivering your videos by an AI, well, ... not yet
they are all well explained and very clear,

marcova
Автор

Excellent Video Dave. I am stuck at Step 2, When I run (load_dotenv(find_dotenv())) this in interative mode in Visual Studio Code it is returning FALSE instead of TRUE. Any suggestions please

SuK
Автор

I see the OpenAI API is used but where do we put the key? ".env" file?

DJPapzin
Автор

Hi. Thanks for your videos… just a curiosity (off topic) where are you from? I’m curious about your “v’s”: for my ears sound like “f’s” which is common in my natural Valencia (Spain) and in Brazilian Portuguese… so… you seem to be north European so which is your most used language? Cheers!

Gabirell
Автор

How do we open this Interactive window to get bot-id? I am using SSH-Vscode server on Mac

rashidiqbal
Автор

Really cool video, thanks! Do you think something like this for Discord would be more difficult to achieve?

RVarblas
Автор

thx for the great explanation!! Can u give me a suggest how can I get my bot user id easier, because following ur instructions is not completely for me clear how can I run my script I mean it give me back some errors but in the end everything works good

AleSaira