Karzoun Chat
  1. الإضافات والمميزات
Karzoun Chat
  • اهلا بك 👋🏻
  • البدء مع كرزون
  • التعديل على الحساب الشخصي
  • التعديل على الحساب العام
  • إضافة موظفين دعم خدمة العملاء
  • إضافة قناة تواصل
  • إضافة فريق
  • إضافة تصنيف
  • إنشاء ردود جاهزة (سريعة)
  • تطبيق كرزون شات على الجوال
  • الواتساب
    • ما هو حساب الواتساب الرسمي API
    • إنشاء حساب واتساب رسمي
    • انواع الواتساب
    • اسعار الرسائل
    • طريقة اطلاق حملة رسائل واتساب
    • طريقة بدء محادثة جديدة
    • توثيق الواتساب بالعلامة الخضراء
    • قوالب الواتساب
      • إنشاء قالب واتساب تسويقي
      • انشاء قالب مع متغيرات
  • قنوات التواصل
    • الفيسبوك
    • الإنستقرام
    • البريد الالكتروني
    • تليقرام
    • المحادثة المباشرة
      • الربط مع سلة
      • منصات اخرى
  • الإضافات والمميزات
    • إضافة فريق
    • جهات الاتصال
    • التقارير
    • تفعيل التقييم
    • إنشاء ردود جاهزة (سريعة)
    • إضافة تصنيف
    • نظام إسناد المحادثات
    • المجلدات والفلترة
    • الأتمتة
    • الرسالة الترحيبية ورسالة ساعات الدوام
    • الماكرو
    • Dashboard APP
  • التحديثات
  • Karzoun API
    • How to creat message templates for your WhatsApp Business account
    • How to add system user and generate Access Tokens
    • Create Meta App
    • send message
      • Send Authentication Template (OTP)
      • send message with media
      • send message with button
      • send sample message
    • Sync Messages to Karzoun Chat
  • رموز والاخطاء
  • شركاء كرزون
    • الانضمام كـ مزود حلول تقني معتمد من واتساب شريك كرزون
  • شوبيفاي
    • تفعيل الربط مع شوبيفاي
  1. الإضافات والمميزات

Dashboard APP

How to use Dashboard Apps?#

With Dashboard apps, you can integrate an app within the Karzoun dashboard for agents' use. This feature enables you to create an application independently, which can then be embedded to provide customers' information, orders, past payment history, etc.
When embedded in Karzoun's dashboard, your application will get the context of the conversation and contact as a window event. Implement a listener for the message event on your page to receive the context.
1.
Step Go to Settings → Integrations → Dashboard apps. Click on the “Configure” button corresponding to the Dashboard Apps.
‏لقطة الشاشة 2024-06-08 في 03.15.42.png
2.
Step Add your app name and the URL on which your app is hosted.
edit dashboard sapp.png
Once you are done, a new tab with the name you gave to the app will appear in the conversation window. In this case, it is “Customer Orders”.
When you click on the new tab, you will be able to see your application fetching data on the Karzoun dashboard.
dashboaard app in action.png

Receiving data from Karzoun into your app#

Karzoun will deliver the conversation and contact context as a window event. This can be accessed within your app by implementing a listener for the event, as shown here:
window.addEventListener("message", function (event) {
  if (!isJSONValid(event.data)) {
    return;
  }

  const eventData = JSON.parse(event.data);
});

On-demand request for data from Karzoun#

If you need to request the conversation data on demand from Karzoun, you can send a message to the parent window using the javascript postMessage API.
Karzoun will be listening to this key: Karzoun-dashboard-app:fetch-info.
Example
The following code can be used to query the dashboard app. Karzoun will respond to this request by providing the updated conversation payload promptly.
window.parent.postMessage('Karzoun-dashboard-app:fetch-info', '*')

// You would get a message in the on message listener with the appContext payload.

Event Payload#

conversation object
{
  "meta": {
    "sender": {
      "additional_attributes": {
        "description": "string",
        "company_name": "string",
        "social_profiles": {
          "github": "string",
          "twitter": "string",
          "facebook": "string",
          "linkedin": "string"
        }
      },
      "availability_status": "string",
      "email": "string",
      "id": "integer",
      "name": "string",
      "phone_number": "string",
      "identifier": "string",
      "thumbnail": "string",
      "custom_attributes": "object",
      "last_activity_at": "integer"
    },
    "channel": "string",
    "assignee": {
      "id": "integer",
      "account_id": "integer",
      "availability_status": "string",
      "auto_offline": "boolean",
      "confirmed": "boolean",
      "email": "string",
      "available_name": "string",
      "name": "string",
      "role": "string",
      "thumbnail": "string"
    },
    "hmac_verified": "boolean"
  },
  "id": "integer",
  "messages": [
    {
      "id": "integer",
      "content": "Hello",
      "inbox_id": "integer",
      "conversation_id": "integer",
      "message_type": "integer",
      "content_type": "string",
      "content_attributes": {},
      "created_at": "integer",
      "private": "boolean",
      "source_id": "string",
      "sender": {
        "additional_attributes": {
          "description": "string",
          "company_name": "string",
          "social_profiles": {
            "github": "string",
            "twitter": "string",
            "facebook": "string",
            "linkedin": "string"
          }
        },
        "custom_attributes": "object",
        "email": "string",
        "id": "integer",
        "identifier": "string",
        "name": "string",
        "phone_number": "string",
        "thumbnail": "string",
        "type": "string"
      }
    }
  ],
  "account_id": "integer",
  "additional_attributes": {
    "browser": {
      "device_name": "string",
      "browser_name": "string",
      "platform_name": "string",
      "browser_version": "string",
      "platform_version": "string"
    },
    "referer": "string",
    "initiated_at": {
      "timestamp": "string"
    }
  },
  "agent_last_seen_at": "integer",
  "assignee_last_seen_at": "integer",
  "can_reply": "boolean",
  "contact_last_seen_at": "integer",
  "custom_attributes": "object",
  "inbox_id": "integer",
  "labels": "array",
  "muted": "boolean",
  "snoozed_until": null,
  "status": "string",
  "timestamp": "integer",
  "unread_count": "integer",
  "allMessagesLoaded": "boolean",
  "dataFetched": "boolean"
}

contact object#

{
  "additional_attributes": {
    "description": "string",
    "company_name": "string",
    "social_profiles": {
      "github": "string",
      "twitter": "string",
      "facebook": "string",
      "linkedin": "string"
    }
  },
  "availability_status": "string",
  "email": "string",
  "id": "integer",
  "name": "string",
  "phone_number": "+91 9000000001",
  "identifier": "string || null",
  "thumbnail": "+91 9000000001",
  "custom_attributes": {},
  "last_activity_at": "integer"
}

currentAgent object#

{
  "email": "string",
  "id": "integer",
  "name": "string"
}

Final Payload#

{
  "event": "appContext",
  "data": {
    "conversation": {
      // <...Conversation Attributes>
    },
    "contact": {
      // <...Contact Attributes>
    },
    "currentAgent": {
      // <...Current agent Attributes>
    }
  }
}
Modified at 2024-06-08 00:26:02
Previous
الماكرو
Next
How to creat message templates for your WhatsApp Business account
Built with