Create Discord Feed

Create Discord feed to ingest Discord messages and attached files.

Graphlit supports ingesting messages and attached files from Discord channels.

The createFeed mutation enables the creation of a feed by accepting the feed name, type and discord feed parameters and it returns essential details, including the ID, name, state, and type of the newly generated feed.

You will need to opt-in to extracting attachments from Discord messages, which will be ingested as new content objects, by assigning includeAttachments to true.

Depending on the specified type parameter, Graphlit requires the specific feed parameters including the Discord channel and bottoken.

Discord support requires the creation of an Discord application and bot, which can be found on the Discord developer portal. Your bot token can be found on the Bot page, with your Discord application selected.

You will need to click "Reset Token" to create a token the first time.

You will need to invite your bot to any channel you want Graphlit to read, by creating an OAuth URL with the bot scope, and read message history and read messages/view channels permissions.

By default, the Discord feed will ingest the markdown text from Discord messages, including the author of the message, and any embedded links or attachments. You will be able to search on the extracted text to locate relevant Discord messages.

You can assign a workflow object when creating the feed, and enable link crawling in order to ingest any referenced web pages or files linked to the Discord messages.

Mutation:

mutation CreateFeed($feed: FeedInput!) {
  createFeed(feed: $feed) {
    id
    name
    state
    type
  }
}

Variables:

{
  "feed": {
    "type": "DISCORD",
    "discord": {
      "token": "redacted",
      "channel": "redacted"
      "includeAttachments": true,
    },
    "schedulePolicy": {
      "recurrenceType": "REPEAT",
      "repeatInterval": "PT5M"
    },
    "name": "Discord Feed"
  }
}

Response:

{
  "type": "DISCORD",
  "id": "1f2ccc29-6e4d-4aec-afe0-f21eedd56132",
  "name": "Discord Feed",
  "state": "ENABLED"
}

Last updated