Hook
More breakout videos from this creator.
Here's how I made an AI automation Instagram chatbot. First, I created a webhook that will receive all of the Instagram messages. If the message is going to other users, we'll filter it. Then, if the user is eligible for AI, we'll get the username. Then, if there is no record, we'll pass it to AI. Then, we format the message from the user to AI. Then, we pass the message to AI. Then, we format the response from AI to the user. Then, we send the response to the user. And we have additional features like if the user wants to buy a course, for example, we can confirm if the user wants to buy the course. So we'll get the username, then notify Darwin via Telegram that the user wants to buy the course. And we have additional features that if the user chats with Darwin, we'll trigger the AI to not be able to reply to the message of Darwin. All of this is built on n8n, which I self-hosted on DigitalOcean.