Prerequisites
Before setting up a custom channel, ensure you have:- Active subscription to the Messages Product
- API key with ORG_ADMIN or PROVIDER rights
1 - Setting up the Channel
1 - Setting up the Channel
Channel configuration
To integrate a custom channel, you need to contact our Account Manager to activate the channel. We’ll help you set up the integration with the following information:1
Gather required information
Send to your support contact the following details for your custom channel:
- name: Display name for your custom channel
- icon: (Optional) URL to an image for the channel’s icon
- is_readonly: Channel communication mode (see next step)
2
Choose communication mode
Decide whether your channel should be read-only or bidirectional:
- Read-only (is_readonly: true)
- Bidirectional (is_readonly: false)
- Messages can only be sent TO Partoo
- Simpler setup with no webhook requirements
- Ideal for notification systems or logging
3
Contact support and receive channel_id
Reach out to our support team with your configuration requirements.
After configuration, you’ll receive a
channel_id that you’ll need for implementing the message flow.2 - Implementing the Custom Channel
2 - Implementing the Custom Channel
Send messages from your custom channel to Partoo
Once your custom channel is configured, you can use the message ingestion endpoint to send messages to Partoo from your custom channel.How the endpoint works
This endpoint creates new messages in conversations that use custom channels.Key behaviors to consider:- If the conversation exists, the message is added to it
- If the conversation doesn’t exist, it’s automatically created before adding the message
- Messages are processed asynchronously for better performance
external_conversation_id&external_message_idenable you to correlate webhook messages with the corresponding conversations in your internal system.- Messages with the same
external_message_id&channel_idare considered duplicates and ignored - Messages with the same
external_conversation_id&channel_idare grouped in the same Partoo conversation
Receive messages from Partoo to your custom channel (for bidirectional channels)
If you configured your channel as bidirectional (is_readonly: false), you need to handle incoming replies from Partoo1
Subscribe to webhooks
Set up webhook subscription for Message Created events to receive replies sent from Partoo.
2
Process incoming messages
When Partoo users reply to messages, you’ll receive webhook notifications that you need to process and route back to your system.
You’ve successfully configured your custom messaging channel! Your integration is now ready to handle messages through Partoo’s messaging platform.