Blog

  • Beyond Keywords: Semantic Search for Visitor Queries.

    Visitors to our website rarely use the right keywords. Instead, they ask vague questions like ‘Do you do that thing with the phones?’ That’s where semantic search comes in. With the help of Pinecone and OpenAI Embeddings, our bot can understand the intent behind the messy query and retrieve the correct service page from our vector store.

    But how does it work? Well, first we use Pinecone to index our vector database. Then, when a visitor asks a question, we use OpenAI Embeddings to generate a vector representation of their query. Finally, we use the Pinecone index to find the closest match in our vector database.

    This approach allows our bot to provide accurate and relevant answers to our visitors’ questions, even when they don’t use the right keywords.

    Learn more about our semantic search technology and how it can help you improve your customer experience.

    #ShahiRaj #SemanticSearch #AI

  • RAG for Objection Handling: Coding a Bot That Can Negotiate.

    Standard bots fail when a user says ‘It’s too expensive.’ But not ours. With Vector Search, we retrieve specific ‘ROI data’ and ‘Competitor Comparisons’ from a PDF knowledge base, allowing the LLM to counter objections with hard facts instantly.

    In this technical deep dive, I’ll show you how to code a bot that can negotiate and seal the deal. By combining RAG, Vector Search, and LLMs, we’ve created a bot that can handle objections and close deals.

    Want to learn more? Check out our ShahiRaj blog for the latest on RAG-powered chatbots and objection handling.

  • OCR is Dead. Long Live GPT-4o Vision.

    Old OCR tools failed on complex layouts, but I’ve found a game-changer in GPT-4o Vision. This AI-powered vision model inside n8n allows my bot to ‘look’ at an image (like a conference agenda) and output clean JSON meeting details, handling even blurry text perfectly.

    I’ll demonstrate how I integrated GPT-4o Vision into my bot’s workflow, showing you how it can extract meeting details from images and sync them with your calendar.

    Want to learn more about this cutting-edge technology? Check out our blog for the latest updates and tutorials.

  • Speech-to-Action: The Stack Behind Voice Scheduling.

    When handling voice notes, it’s not just about transcription; it’s about intent. I’ll walk you through how I pipe Telegram audio files into OpenAI Whisper (for accuracy) and then into an LLM (for extraction) to convert “Kal dopahar” into 2025-12-12T14:00:00. This tech stack is crucial for our Shahi Raj solutions, ensuring seamless integration. If you’re interested in building something similar, check out our development services. #ShahiRaj

  • Building ‘Stuck Shipment’ Logic with n8n Cron Triggers.

    I don’t just wait for webhooks. I run a nightly Cron job in n8n that scans the active order database. If Order_Date is more than 5 days old and Status is not 'Delivered', it triggers an 'Escalation' workflow to the logistics partner and an 'Apology' template to the customer.

    Learn more about how ShahiRaj uses n8n to automate workflows and improve customer satisfaction.

  • API Aggregation in n8n: Normalizing Shipmozo & BigShip Data

    In this post, I’ll share how I built a ‘Normalizer’ node in n8n to standardize status codes from Shipmozo and BigShip. This allowed us to push clean updates to users, improving their experience and reducing support queries.

    Every logistics carrier sends data differently, making it challenging to work with. By normalizing the data, we can now provide a seamless experience for our customers.

    Check out the code and learn how to build your own Normalizer node in n8n!

    Read more about our e-commerce solutions and how we can help you get started today!

  • Webhook Routing 101: Handling Multi-Carrier Updates

    When working with multiple logistics partners like Shipmozo, BigShip, and ShipRocket, webhook routing can get complicated. Shipmozo sends webhooks one way, while BigShip does it another. That’s where n8n’s ‘Switch’ node comes in handy.

    In this post, I’ll break down how to use the ‘Switch’ node to route incoming webhook data based on the ‘Carrier_ID’, so you can handle unlimited logistics partners in a single workflow.

    With n8n, you can:

    • Route webhooks from multiple carriers
    • Automate data processing and updates
    • Integrate with your existing systems

    Want to learn more about webhook routing and how it can supercharge your logistics operations? Check out our Dev blog for the full tutorial.

    #ShahiRaj #WebhookRouting #LogisticsAutomation

  • Date-Based Triggers in n8n: Automating Recurring Invoices

    Hard-coding dates is messy. I built a workflow in n8n that checks the Student Database, compares the Next Due Date with Today, and generates an invoice link (Razorpay/Stripe) if they match. The invoice is then sent via the WhatsApp API. A zero-touch finance department is a beautiful thing.

    This logic is reusable and easy to maintain. By using date-based triggers, we can automate recurring invoices and reduce manual intervention. Say goodbye to tedious tasks and hello to increased productivity.

    Want to learn more about building date-based triggers in n8n? Reach out to me for a consultation.

  • Google Sheets to WhatsApp: Building an Attendance Bot

    I’ll show you a simple but powerful workflow. Teachers mark attendance in a Google Sheet on their phone. n8n watches that sheet. If a student is marked ‘Absent’, it triggers a WhatsApp Template message to the parent instantly. No manual typing. Learn more about our custom development services.

  • Algorithmic Calendars: Coding the Misri Date Converter

    The challenge of date conversion between the Gregorian calendar and the Misri Calendar is a complex one, but I was determined to crack the code. I used a custom Javascript function in n8n to convert dates dynamically, while fetching real-time weather data from the OpenWeatherMap API in the same workflow.

    This was no easy feat, but the end result was well worth it. With ShahiRaj, I can now get the correct Misri dates and weather updates in one place, streamlining my workflow and saving me valuable time.

    Want to learn more about how I built this custom solution? Reach out to me and let’s discuss how we can help you automate your specific needs.