Category: Uncategorized

  • Building the Misri Calendar & Weather Bot: A Technical Deep Dive

    As the developer behind the Misri Calendar & Weather Bot, I’m excited to share the technical details of our latest update. By integrating multiple services into one seamless experience, we’ve created a powerful tool for our community.

    The update leverages n8n’s workflow automation capabilities, Vector DBs for efficient data storage, and Webhooks for real-time updates. The bot’s architecture is designed to handle high volumes of requests while ensuring accurate and up-to-date information.

    With this update, we’ve also improved the user experience by simplifying the workflow and adding a local holidays feature. The result is a more comprehensive and user-friendly experience for our users.

    At Shahi Raj, we’re passionate about building innovative solutions that make a difference in people’s lives. If you’re interested in learning more about our development process and how we built the Misri Calendar & Weather Bot, stay tuned for future updates.

    Learn more about our development process and how you can build similar solutions: https://www.shahiraj.com

    Tags: #ShahiRaj #BotDevelopment #TechnicalDeepDive #AutomationSolutions #n8n #VectorDBs #Webhooks

  • Syncing Multi-Agent Chats via WebSockets

    We’ve all been there – 5 people trying to use 1 WhatsApp number without it crashing. But how do we make it work? At Chatore, we use a combination of the Cloud API and WebSockets to push messages to a centralized dashboard in real-time. This allows for agent assignment and private notes that the customer can’t see.

    Here’s a high-level overview of our architecture:

    • Cloud API: Handles incoming and outgoing messages
    • WebSockets: Pushes messages to the dashboard in real-time
    • Agent Assignment: Assigns agents to specific chats
    • Private Notes: Allows agents to leave notes that are visible only to them

    With this setup, we can handle multiple agents on a single number without any issues. Learn more about our technical approach.

    Join the conversation: #ShahiRaj #TechStack

  • Beyond ‘Out of Office’: Building an After-Hours Flow.

    Standard WhatsApp Business just sends a static text: ‘We are closed. ‘ That kills the lead. I’ll show how to configure a ‘Smart Weekend Flow’ in Chatore that captures the requirement and books a slot for Monday morning automatically.

    In this tutorial, I’ll guide you through the technical steps to build a ‘Weekend Lead Magnet’ that will help you stay competitive. Check it out and learn how to automate your weekend sales.

  • Handling ‘Date Drift’: Gregorian vs. Hijri Conversion

    When building the Misri Calendar Bot, I encountered a unique challenge. Hijri days start at Maghrib, not midnight. This breaks standard code logic. To handle this, I wrote a ‘Time-Shift’ function in JavaScript. This ensures the bot displays the correct Misri date based on whether the sun has set in the user’s requested city. Here’s the code snippet: Learn more about our tech stack.

  • API Mashup: Merging OpenWeather with Astronomical Algorithms

    Calculating prayer times isn’t just about the sun; it’s about the sect’s specific jurisprudence. In this post, I’ll share how I pipe the City Name into OpenWeatherMap (for lat/long) and run it through a custom SunCalc algorithm in n8n to derive precise ‘Nisful Layl’ and ‘Zawal’ times.

    Using the OpenWeatherMap API, I retrieve the City’s latitude and longitude. Then, I use these coordinates to run the SunCalc algorithm in n8n, which generates the accurate ‘Zawal’ and ‘Maghrib’ times based on the City’s location. The result is a seamless integration of weather data and astronomical calculations.

    This API mashup is a testament to the power of data integration and the possibilities it offers in solving complex problems. By combining OpenWeatherMap and SunCalc, I’ve created a solution that provides accurate prayer times for users worldwide.

    If you’re interested in building similar integrations or want to learn more about API mashups, feel free to reach out to me. I’d be happy to share more details and insights.

    Check out the MisriCalendarBot here and stay tuned for more technical updates!

    #ShahiRaj #n8n #APIIntegration #SunCalc

  • Porting from App to Cloud API: The Backend Process

    When migrating a number from a mobile app to our Cloud API, a crucial step is the ‘2FA Handshake’. This precise surgical switch involves deleting the account from the mobile app and instantly registering it on the Cloud API server.

    I’ll walk you through the process in detail, explaining the key steps involved in this backend migration. Once complete, you can log in to Chatore and see your team inbox live.

    Explore our migration process in action and see how we can help you scale your business.

    #ShahiRaj #CloudAPI #Migration #BackendProcess

  • Understanding WhatsApp Template Messages (HSM)

    Meta requires pre-approved templates to stop spam. I’ll show you how to design a ‘High-Converting’ template with buttons and variables (e.g., Hello {{1}}) inside the Chatore dashboard.

    Your message lands in the ‘Primary’ inbox, not the ‘Spam’ folder.

    Learn more about WhatsApp Business and how to create effective template messages.

    Check out the Shahi Raj blog for more technical guides.

  • Porting from App to Cloud API: The Backend Process

    When we migrate a number from the mobile app to the Cloud API server, we perform a precise surgical switch known as the ‘2FA Handshake.’

    Here’s a step-by-step breakdown:

    1. Delete the account from the mobile app.
    2. Instantly register it on the Cloud API server.
    3. Verify the account to ensure a seamless connection.
    4. Log in to Chatore and see your team inbox live.

    This process takes around 2 hours, and with our expertise, you can rest assured that your data will be preserved and accessible.

    Want to know more about our backend process? Reach out to us at ShahiRaj

    #ShahiRaj

  • The Tech Requirements for Meta Verification.

    Getting the Green Tick isn’t luck; it’s data. To ensure a smooth verification process, you’ll need to meet the following technical requirements:

    • Domain Verification (DNS TXT records)
    • Business Manager 2FA
    • Display Name compliance

    These requirements may seem daunting, but we automate the check to ensure that you’re meeting all the necessary criteria.

    Our technical expertise will help you navigate the complex world of Meta verification and get your Green Tick in no time.

  • Anatomy of a Ban: How WhatsApp Detects Unofficial Tools

    Unofficial tools use ‘Headless Chrome’ to simulate a human, but WhatsApp’s AI detects the typing speed and session headers. In contrast, the Official Cloud API (used by Chatore) sends data directly to Meta’s servers, allowing for scale without risking a ban. Read more about the technical differences between unofficial and official tools.