Connect your business to over 2 billion users on WhatsApp using the official Cloud API. This guide walks you through bypassing the 24-hour temporary token issue by creating a permanent System User connection.
1 Phase 1: Meta Developer Portal Setup
First, you need to create a application on the Meta Developers ecosystem that will serve as the gateway for your WhatsApp Business Account.
- Go to the Meta for Developers portal and log in.
- Click "Create App" in the top-right corner.
- Select "Other" as your use case, then choose "Business" as the app type.
- Enter your App Name (e.g., "InitialChat-Integration") and select your Business Portfolio.
- Once created, scroll down on the Dashboard and click "Set Up" on the WhatsApp product card.
2 Phase 2: Generating a Permanent Token
⚠️ Important Step
Meta provides a "Temporary Token" on the WhatsApp Getting Started page, but it expires in 24 hours. To build a reliable AI agent, follow these steps to get a Permanent Access Token.
- Open your Business Settings.
- Navigate to Users > System Users in the left sidebar.
- Click "Add", name your user (e.g., "AI-Agent-Server"), and set the role to Admin.
- Click "Assign Assets". Select Apps > [Your App Name] and toggle Manage App (full control).
- Click "Assign Assets" again. Select WhatsApp Business Accounts > [Your WABA] and toggle Full control.
- Finally, click "Generate New Token". Select your app from the list and check the
whatsapp_business_managementandwhatsapp_business_messagingpermissions. - Copy this token and keep it safe! You will only see it once.
3 Phase 3: Connecting to InitialChat
Now that you have your credentials, head back to your InitialChat dashboard.
- Go to the Integrations hub and find the WhatsApp Business card.
- Paste your Permanent Access Token into the Token field.
- Enter your Phone Number ID (found in the Meta App > WhatsApp > API Setup screen).
- Enter your WhatsApp Business Account ID (WABA ID).
- Click Enable Integration and then Save changes.
🚀 Pro Tip: Webhook Verification
"Don't forget to configure your Webhooks in the Meta Developer Portal! Use the exact Callback URL and Verify Token provided in your InitialChat Dashboard to ensure your AI gets incoming messages instantly. If the status says \"Pending Verification\", double-check your verify token for extra spaces."
