packages/cli/templates/webhook-message/hub.md
This integration serves as a template for receiving events through a webhook and creating messages for them, as well as sending messages through an external API.
Describe the integration's purpose.
To use this integration, you will need to manually subscribe your integration to an external service webhook. You will also have to provide a webhookUrl configuration to send outgoing messages to.
Explain how to configure your integration and list prerequisites
ex: accounts, etc.. You might also want to add configuration details for specific use cases.
Send messages through the webhook channel to send them through the external webhookUrl you configured.
Receive messages through the integration's incoming webhook handler. Received messages have to contain:
userId: string
conversationId: string
text: string
Explain how to use your integration. You might also want to include an example if there is a specific use case.
Only text messages are supported for outgoing messages.
List the known bugs. List known limits
ex: rate-limiting, payload sizes, etc.List unsupported use cases.
If some versions of your integration introduce changes worth mentionning (breaking changes, bug fixes), describe them here. This will help users to know what to expect when updating the integration.
integration.definition.ts.conversationId, userId and messageId when available.channels, entities, user, conversations and messages.RuntimeError is thrown with instructions to fix the problem.