Skip to content

Commit

Permalink
Intercom: fix wording and limit to published articles
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Feb 12, 2024
1 parent bf3035f commit e293686
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion connectors/src/connectors/intercom/lib/intercom_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ export async function fetchIntercomArticles(
}
} while (hasMore);

return articles.filter((article) => article.parent_id == parentId);
return articles.filter(
(article) => article.parent_id == parentId && article.state === "published"
);
}

/**
Expand Down
5 changes: 3 additions & 2 deletions front/lib/connector_providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ export const CONNECTOR_CONFIGURATIONS: Record<
status: "built-dust-only", // ROLLOUT INTERCOM
hide: false,
description:
"Authorize access to your Intercom Help Center Collections & Articles. Conversations coming soon.",
limitations: null,
"Authorize granular access to your Intercom workspace. Access your Conversations at the Team level and Help Center Articles at the main Collection level.",
limitations:
"Dust will index only the conversations from the selected Teams that were initiated within the past 90 days and concluded (marked as closed). For the Help Center data, Dust will index every Article published within a selected Collection.",
logoComponent: IntercomLogo,
isNested: true,
},
Expand Down

0 comments on commit e293686

Please sign in to comment.