Help Center articles: list, read and search. Search is the quickest way for an agent to find the article to link in a reply.
Context Vars
Optional
intercom.token
Functions
get-article
fn (id: Any): Any
fn (id: Any, opts: Map): Any
GET /articles/{id} - One article with its body (HTML), url, state
and translations.
Example
article ::intercom::articles/get-article("4128790")
article.url
list-articles
fn (): Any
fn (options: Map): Any
fn (options: Map, opts: Map): Any
GET /articles - Articles by page number, most recently updated first:
{data, pages, total_count}. options: page, per_page.
Example
page ::intercom::articles/list-articles({page: 1, per_page: 25})
map(page.data, %.title)
search-articles
fn (phrase: Str): Any
fn (phrase: Str, options: Map): Any
fn (phrase: Str, options: Map, opts: Map): Any
GET /articles/search - Articles matching phrase. options:
state ("published" (the API default), "draft" or "all"),
help_center_id, highlight (Bool), page, per_page. Returns
{data: {articles: [...]}, total_count, pages}; data is an empty
Vec when nothing matches.
Example
hits ::intercom::articles/search-articles("reset password", {state: "published"})