Beberapa produk dan fitur sedang dalam proses penggantian nama. Fitur playbook dan alur generatif juga dimigrasikan ke satu konsol gabungan. Lihat detailnya.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Integrasi Slack memungkinkan Anda membuat bot Slack dengan mudah menggunakan teknologi natural language understanding berdasarkan teknologi Agen Percakapan (Dialogflow CX).
Batasan
Hanya input teks dalam bahasa default agen
yang didukung oleh integrasi ini.
Menyiapkan Slack
Untuk menyiapkan integrasi Slack bagi agen Anda, Anda memerlukan
hal berikut:
Buat aplikasi Slack baru dari manifes aplikasi. Berikut adalah contoh manifes.
Pastikan kolom oath_config dan event_subscriptions cocok dengan contoh manifes.
Buka Install App > OAuth Tokens for Your Workspace > Bot User OAuth Token
Token Penandatanganan
Buka Informasi Dasar > Kredensial Aplikasi > Secret Penandatanganan
Menyiapkan Agen Percakapan (Dialogflow CX)
Klik tab Kelola di panel kiri.
Klik Integrasi di menu kiri.
Klik tombol Connect di kartu Slack.
Isi informasi berikut:
Token akses
Token penandatanganan
Pilih lingkungan yang sesuai.
Klik Mulai.
Salin URL Webhook.
Mengaktifkan webhook di Slack
Kembali ke Aplikasi Slack dan tempel URL webhook Anda di bagian Event Subscriptions > Enable Events > Request URL
Pengujian
Untuk menguji aplikasi yang telah dikonfigurasi, di ruang kerja tempat Anda menginstalnya, sebutkan aplikasi tersebut di saluran grup atau kirimkan DM.
Pesan respons lengkap
Pesan respons lengkap didukung melalui Payload Kustom di
Pemenuhan. Lihat
Slack message API untuk mengetahui
format pesan.
Misalnya, payload kustom berikut memberikan pesan teks Slack sederhana:
{
"text": "Hello, world"
}
Respons khusus channel
Setelah Anda mengonfigurasi respons khusus saluran, saluran DF_CX_SLACK akan otomatis digunakan saat agen merespons pesan Slack.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-03 UTC."],[],[],null,["# Slack\n\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThe Slack Integration lets you to easily create Slack bots with\nnatural language understanding based on Conversational Agents (Dialogflow CX) technology.\n\n\n| **Note:** When using a third party integration, requests and end-user data are sent to both Google and the third party. The terms of service, SLA, pricing, and quotas [for your agent edition](/dialogflow/docs/editions) are applicable for Google's handling of these requests. The third party's terms of service, SLA, pricing, and quotas are applicable for the third party's handling of these requests.\n\n\u003cbr /\u003e\n\nLimitations\n-----------\n\n- Only **text input** in the [agent's default language](/dialogflow/cx/docs/concept/agent-settings) is supported by this integration.\n\nSet Up Slack\n------------\n\nIn order to set up the Slack integration for your agent, you'll need the\nfollowing:\n\n- A Slack account\n- A Slack workspace\n\n### Create a Slack bot\n\n1. Navigate to your [Slack Apps](https://api.slack.com/apps)\n2. Create a new slack app from an app manifest. Below is an example manifest. Make sure that the **oath_config** and **event_subscriptions** fields match with the example manifest. \n\n ```yaml\n display_information:\n name: Conversational Agents (Dialogflow CX)\n description: Conversational Agents (Dialogflow CX) integration\n background_color: \"#1148b8\"\n features:\n app_home:\n home_tab_enabled: false\n messages_tab_enabled: true\n messages_tab_read_only_enabled: false\n bot_user:\n display_name: CX\n always_online: true\n oauth_config:\n scopes:\n bot:\n - app_mentions:read\n - chat:write\n - im:history\n - im:read\n - im:write\n - incoming-webhook\n settings:\n event_subscriptions:\n request_url: https://dialogflow-slack-4vnhuutqka-uc.a.run.app\n bot_events:\n - app_mention\n - message.im\n org_deploy_enabled: false\n socket_mode_enabled: false\n token_rotation_enabled: false\n ```\n3. Install your application into the workspace of your choice\n - **Bot User OAuth Token**\n - Navigate to Install App \\\u003e OAuth Tokens for Your Workspace \\\u003e Bot User OAuth Token\n - **Signing Token**\n - Navigate to Basic Information \\\u003e App Credentials \\\u003e Signing Secret\n\n### Set up Conversational Agents (Dialogflow CX)\n\n1. Click **Manage** tab on the left panel.\n2. Click **Integrations** in the left menu.\n3. Click the **Connect** button on the **Slack** tile.\n4. Fill in the following information:\n - **Access token**\n - **Signing token**\n5. Choose an environment, as applicable.\n6. Click **Start**.\n7. Copy the **Webhook URL**.\n\n### Enable webhook in Slack\n\nReturn to your [Slack App](https://api.slack.com/apps) and paste your webhook\nurl under **Event Subscriptions \\\u003e Enable Events \\\u003e Request URL**\n\nTesting\n-------\n\n| **Note:** Make sure [billing is enabled](/dialogflow/cx/docs/quick/setup#billing) on your project before testing the integration.\n\nTo test your configured app, in the workspace you installed it in, mention it\nin a group channel or send it a DM.\n\nRich response messages\n----------------------\n\nThe rich response messages are supported via **Custom Payload** in\n[Fulfillment](/dialogflow/cx/docs/concept/fulfillment). Please see\n[Slack message API](https://api.slack.com/methods/chat.postMessage) for the\nmessage format.\n| **Note:** If it is not specified in the custom payload, the channel field will be automatically injected with the channel id of the input message.\n\nFor example, the following custom payload provides a simple Slack text message: \n\n```\n{\n \"text\": \"Hello, world\"\n}\n```\n\nChannel specific responses\n--------------------------\n\nAfter you configure the [channel-specific\nresponses](/dialogflow/cx/docs/concept/fulfillment#channel-specific), the\nchannel `DF_CX_SLACK` is automatically used when the agent responds\nto Slack messages."]]