DinastiAPI AI icon

DinastiAPI AI

Send WhatsApp messages using DinastiAPI - optimized for AI workflows

Overview

The node "DinastiAPI AI" enables interaction with WhatsApp messaging and user data via the DinastiAPI service. Specifically, the Get Business Profile operation retrieves detailed business profile information for a given WhatsApp business account phone number. This includes business hours, categories, contact details, and other relevant metadata.

This node is beneficial in scenarios where you want to programmatically access verified business information on WhatsApp, such as for customer support automation, CRM enrichment, or AI-driven chatbots that need contextual business data.

Example use case:
You have a chatbot that interacts with customers and wants to display official business info (like opening hours or address) fetched live from WhatsApp business profiles to provide accurate assistance.


Properties

Name Meaning
Phone Number Phone number of the WhatsApp business account to retrieve the profile for (required).
Optimize Response Whether to optimize the API response to reduce token usage and improve AI processing (boolean).
Max Response Length Maximum characters allowed in the optimized response; longer responses will be truncated.
Include Only Essential Fields Whether to include only essential fields in the response to reduce noise (boolean).
Response Format Format of the response: "Optimized" (structured for AI), "Raw" (complete raw API response), or "Summary" (brief key info).

These properties control both the input (business phone number) and how the output data is formatted and optimized for downstream AI workflows.


Output

The node outputs JSON data containing the business profile information retrieved from the WhatsApp API endpoint /user/business/profile. The structure typically includes:

  • Business phone number
  • Business hours
  • Categories/tags describing the business
  • Contact details and possibly other metadata related to the business profile

If the "Optimize Response" option is enabled, the output may be truncated or filtered to include only essential fields, marked with metadata indicating optimization and truncation status.

No binary data is produced by this operation.


Dependencies

  • Requires an active connection to the DinastiAPI WhatsApp service.
  • Needs an API key credential configured in n8n for authentication with DinastiAPI.
  • The node uses HTTP requests to DinastiAPI endpoints.
  • No additional environment variables are explicitly required beyond standard API credentials.

Troubleshooting

  • Error: "Unknown operation" — Ensure the operation parameter is set exactly to "getBusinessProfile".
  • Missing or invalid phone number — The business phone number must be provided in international format without "+" and must correspond to a valid WhatsApp business account.
  • API request failures — Check your API key validity and network connectivity to DinastiAPI.
  • Empty or no avatar found — Not applicable here but common in avatar retrieval operations; ensure the target has a profile picture.
  • Response too large or incomplete — Use the "Optimize Response" and related options to limit response size and focus on essential data.

Links and References


If you need further details on other operations or resources, feel free to ask!

Discussion