ChatWork uses two setup steps in Cogno: OAuth connection and webhook setup.
OAuth connection authorizes Cogno to read the ChatWork API. Cogno uses the rooms, messages, and members visible to the authorized ChatWork user to keep the integration connected and build User mapping candidates.
Webhook setup sends ChatWork message events to Cogno in real time. You register Cogno's Webhook URL in ChatWork, then save the Webhook Setting ID and Webhook Token in Cogno.
Before you start
- You are a Cogno workspace owner.
- You can use a ChatWork account that participates in the target rooms.
- You can create and edit webhooks from ChatWork API management.
- For a team-wide integration, use a ChatWork operator account that will not disappear when an individual user leaves or changes permissions.
Connect OAuth in Cogno
- Open the Cogno app.
- Open Integrations in the target workspace.
- Select ChatWork.
- Click Connect ChatWork.
- Review and approve the scopes on the ChatWork authorization screen.
- Return to the ChatWork integration page in Cogno and confirm that Connection shows
Connected.
Cogno can read the ChatWork API after this step. To receive live message events, complete the webhook setup as well.
Create the webhook in ChatWork
- Open Integrations > ChatWork in Cogno.
- Copy the Webhook URL from Webhook setup. This section is visible only to workspace owners.
- Create a new webhook from ChatWork API management.
- Paste Cogno's Webhook URL into the ChatWork webhook URL field.
- Select the events Cogno should ingest. Cogno ingests
message_created,message_updated, andmention_to_me. - Save the webhook in ChatWork.
ChatWork webhooks are real-time notifications configured from ChatWork API management. See ChatWork Webhook documentation for the provider details.
Save webhook verification values in Cogno
- Open the edit screen for the ChatWork webhook you created.
- Find the Webhook Setting ID and Webhook Token.
- Return to Webhook setup in Cogno.
- Enter the Webhook Setting ID and Webhook Token.
- Click Save webhook.
- Confirm that the status changes to
Webhook configured.
Cogno uses this ID and token to verify that inbound webhooks belong to the expected ChatWork setting for the workspace.
Review User mapping
When Cogno finds ChatWork account candidates from the webhook or ChatWork API, they appear under User mapping.
- Click Sync users to refresh candidates.
- Map each ChatWork account to the matching Cogno workspace member.
- Keep the mapping accurate so ChatWork mentions and authors are resolved to workspace members before semantic events are created.
Cogno also uses the same mapping in reverse when it needs to mention a ChatWork account. Fix User mapping first when a ChatWork account points to the wrong Cogno member.
Common states
| State | Meaning | Next action |
|---|---|---|
| Webhook setup is missing | You are not a workspace owner | Ask a workspace owner to complete setup |
| Webhook not configured | Cogno does not have the Webhook Setting ID and Webhook Token yet | Create the webhook in ChatWork, then save the ID and token in Cogno |
| User mapping is empty | Cogno has not observed ChatWork account candidates yet | Send a message in a target room or click Sync users |
| Messages do not appear in Cogno | OAuth may be connected without webhook delivery | Check the Webhook URL, selected events, ID, and token |