This n8n workflow automates the process of booking flights and hotels through natural language input, integrating AI for understanding requests and APIs for searching and confirming reservations. It begins with a webhook trigger that accepts booking requests via HTTP POST. The workflow leverages OpenAI’s GPT-3.5-turbo to parse user requests into structured data, determining whether the request pertains to a flight or hotel. Depending on the booking type, it routes the flow to fetch flight details from AviationStack API or hotel options from Booking.com API. The retrieved data is processed to select the best options—such as the lowest-priced flight or highest-rated hotel—and then confirms bookings by generating personalized messages. Finally, it sends email confirmations and responds to the user with booking details and a confirmation code. This workflow is ideal for travel agencies or automated booking systems aiming to streamline user reservations efficiently and intelligently.
Automated Travel Booking Using AI and APIs
Node Count | >20 Nodes |
---|---|
Nodes Used | code, emailSend, httpRequest, openAi, respondToWebhook, stickyNote, switch, webhook |
Reviews
There are no reviews yet.