Enable direct messaging between users and your integration
Bot DMs allow users to have private, one-on-one conversations with your integration. When enabled, users can start direct message threads with your integration, which appear in their sidebar with your integration’s name and avatar.
To send a direct message to a user, use the Create DM endpoint. This endpoint uses member IDs instead of thread IDs so you can message users without keeping track of a thread ID for each user.