Enabling Zendesk synchronization settings in Discourse
Configuring a Zendesk webhook
Setting up a Zendesk trigger
Enabling Zendesk synchronization settings
To begin, you will need to enable a specific setting in Discourse and provide a secure token.
Navigate to Admin Settings: Go to your Discourse site and navigate to the Admin settings page at /admin/site_settings.
Enable Sync Setting: Find and enable the sync comments from zendesk setting.
Provide Webhook Token: In the zendesk incoming webhook token, generate and add a random secure string. This token will be used later for configuring Zendesk’s webhook.
Setting up a Zendesk webhook
Follow these steps to configure a webhook in Zendesk:
Access Webhooks Page: Navigate to the Webhooks section in Zendesk under Apps and integrations → Webhooks.
Example URL: https://<instance_name>.zendesk.com/admin/apps-integrations/webhooks/webhooks
Create a Webhook:
Click the Actions button in the upper right corner.
Select Create Webhook.
Fill in the webhook details, ensuring you replace <discourse.example.com> with your Discourse site’s URL.
Hey @techAPJ this is really awesome! Is there a way to set up a triggered sync as opposed to a live sync? i.e. an agent would add a tag in ZD or hit a button or something and only then would the ticket sync to the community?
We are trying to figure out the best way to share common FAQ tickets we get to ZD in the community with the Q&A so that users can find the answers there instead of writing in a ticket.
Thanks!
The only triggered sync we have currently is from Discourse → Zendesk.
Triggering a manual sync from Zendesk → Discourse is tricky since we do not have complete control on Zendesk. That said, I’ll investigate if there is a way to trigger webhook from Zendesk by adding a tag, etc.
مرحباً، أنا مع مارلا هنا ^^^. لقد نجحنا في تشغيل المكون الإضافي!
لكننا نتساءل: هل هناك أي طريقة لمواصلة المزامنة ثنائية الاتجاه عندما/إذا تم نقل الموضوع إلى رسالة خاصة؟ في بعض الأحيان، يطلب أعضاؤنا إعادة تعيين كلمات المرور ونود مواصلة المحادثة داخل المجتمع.
لقد جربت العملية المذكورة أعلاه، وهي تعمل بشكل جيد! ومع ذلك، هناك مشكلة عندما يحتوي تعليق في Zendesk على مرفق - تصل الرسالة، ولكن المرفق مفقود. لست متأكدًا مما إذا كانت هناك معلمة إضافية يجب تمريرها في الـ webhook للتعامل مع المرفقات. هل يمكن لأحد أن يوضح ما إذا كانت هناك أي معلمات محددة مطلوبة لهذا الغرض؟
لقد قمت للتو بإعداد إضافة Zendesk وهي تعمل بشكل رائع. أود تمكين المزامنة ثنائية الاتجاه للتعليقات، لكنني لا أرغب في إنشاء تذكرة Zendesk تلقائيًا… في أي وقت مضى، في الواقع.
يبدو أن مزامنة التعليقات من ZD->Discourse تتطلب تمكين الإنشاء التلقائي. هل هذا هو الحال، أم أن هناك حلًا بديلاً؟
لقد قمت بتمكين إضافة Zendesk ويعمل إرسال التذاكر إلى Zendesk. ولكن الـ Webhook في التوثيق أعلاه (https:///zendesk-plugin/sync) يُرجع 404 عند اختباره من صفحة إعداد Webhook في Zendesk. بالتالي، لا يمكنني تحديث منشورات المنتدى من Zendesk. ما الذي أفعله بشكل خاطئ؟
أنا متأكد من أنك أدركت ذلك بالفعل، ولكن عنوان URL للمزامنة يحتاج إلى تضمين نطاقك. لذا بدلاً من مجرد https:///zendesk-plugin/sync قد يكون شيئًا مثل هذا: https://forum.yoursite.com/zendesk-plugin/sync.
حتى بعد تعيين التذكرة على “تم الحل”، يجب أن تظل ترى أي رد من Discourse على تذكرة ZD. سيتعين عليك فقط البحث عن التذكرة.
على سبيل المثال، في موقع الاختبار الخاص بي قمت بإنشاء منشور ومنه تذكرة في ZD. قمت بتعيين التذكرة على “تم الحل” ثم نشرت ردًا على الموضوع على Discourse. تلقيت تعليقًا على تذكرة ZD: