Advice Slip

App · Misc References · 9 actions

Pull one-line advice from the Advice Slip API, the free keyless collection behind adviceslip.com. Draw a piece at random, several at once or one about a subject, search the collection, look one up by id, get it as a picture to post, read the advice the service publishes each day, or pick advice for a date that stays the same all day so a scheduled post never tells two. The service caches its random pick for two seconds, which is handled here rather than left to surprise a workflow.

Actions

ActionWhat it does
Check service statusCheck whether the Advice Slip API is answering, and how quickly.
Get advice as a pictureGet a picture of one piece of advice printed on a paper receipt, to post as an image in a chat, an email or a page instead of as text.
Get advice by IDGet one specific piece of advice by its id, for re-posting something an earlier step found.
Get advice for a dayPick one piece of advice for a day and keep picking that same one all day.
Get random adviceGet one random piece of advice, ready to post, with a link back to it.
Get random advice about a subjectGet one random piece of advice about a subject, such as work, money or friends: for a chat command that answers with advice on whatever someone asked about.
Get several pieces of adviceGet several different pieces of advice at once, up to 10.
Get today's published adviceRead the one piece of advice the service itself publishes each day, from its daily RSS feed.
Search adviceFind the advice that mentions something: a subject, a habit or a word, best match first.

Check service status

Check whether the Advice Slip API is answering, and how quickly. This is the one action that reports a problem as a value instead of failing the step, so a workflow can decide what to do about it. Being throttled is reported separately from being down.

Inputs

None.

Outputs

messagetext
One sentence saying how it went.
onlinetrue/false
True when the service answered with advice.
rate_limitedtrue/false
True when the service said it is getting too many requests.
reachabletrue/false
True when the service answered at all, even with an error.
response_time_msnumber
How long it took to answer, in milliseconds.
status_codenumber
The HTTP status it answered with, or empty when it couldn't be reached.
Example output
{
  "message": "The Advice Slip API is up and answering.",
  "online": true,
  "rate_limited": false,
  "reachable": true,
  "response_time_ms": 74.2,
  "status_code": 200
}

Get advice as a picture

Get a picture of one piece of advice printed on a paper receipt, to post as an image in a chat, an email or a page instead of as text. Gives back a link to the picture, checked to be there, and the advice itself to use as its caption or alt text.

Inputs

Slip IDslip_idtextRequired
The slip's id, or the full Advice Slip link to it. Usually this comes from an earlier step: every action here returns the id of each slip it hands back, and ids are assigned once, so one stored last month still means the same advice.
Sizesizetext
How big a picture. Each is the same receipt, drawn wider or narrower. Defaults to medium.One of: thumbnail (Thumbnail, 120 pixels wide), small (Small, 384 pixels wide), medium (Medium, 576 pixels wide), large (Large, 820 pixels wide). Default: medium.

Outputs

image_urltext
A link to the picture, a PNG that can be posted as an image.
sizetext
The size of the picture: thumbnail, small, medium or large.
slipobject
The piece of advice.
Example output
{
  "image_url": "https://api.adviceslip.com/advice/117/img/m",
  "size": "medium",
  "slip": {
    "advice": "Don't be afraid to ask questions.",
    "slip_id": 117,
    "url": "https://api.adviceslip.com/advice/117"
  }
}

Get advice by ID

Get one specific piece of advice by its id, for re-posting something an earlier step found. Ids are whole numbers the service assigns once, so an id stored last month still means the same advice. A full Advice Slip URL is accepted in place of the bare id.

Inputs

Slip IDslip_idtextRequired
The slip's id, or the full Advice Slip link to it. Usually this comes from an earlier step: every action here returns the id of each slip it hands back, and ids are assigned once, so one stored last month still means the same advice.

Outputs

slipobject
The piece of advice.
Example output
{
  "slip": {
    "advice": "Don't be afraid to ask questions.",
    "slip_id": 117,
    "url": "https://api.adviceslip.com/advice/117"
  }
}

Get advice for a day

Pick one piece of advice for a day and keep picking that same one all day. A random draw gives something different on every call, so a daily workflow that retries, or that two people run an hour apart, posts two different slips for the one day. This one is fixed by the date: the same date always gives the same advice. Each day's pick is made on its own, so now and then two days in a row share one. Add a seed of your own to have two workspaces post different advice on the same day. For the service's own published pick, which is the same for everyone and only ever covers today, use Get today's published advice instead.

Inputs

Daydatedate
The day to pick advice for. Leave empty for today in UTC, which is what a scheduled step wants. Any date works, past or future.
Seedseedtext
Any text you like, mixed into the day so that two workspaces running this on the same day get different advice. Leave empty to share the day's advice with everyone else running it unseeded.

Outputs

datetext
The day the advice is for, as YYYY-MM-DD.
pool_sizenumber
How many pieces of advice it was picked from.
seedtext
What fixed the pick: the day, followed by your seed when you gave one.
slipobject
The piece of advice.
Example output
{
  "date": "2026-09-15",
  "pool_size": 216,
  "seed": "2026-09-15",
  "slip": {
    "advice": "Sleep on a big decision before you make it.",
    "slip_id": 204,
    "url": "https://api.adviceslip.com/advice/204"
  }
}

Get random advice

Get one random piece of advice, ready to post, with a link back to it. The service caches its random pick for two seconds, so two steps run back to back get the same slip; hand back the id you posted last time to draw a different one instead.

Inputs

Don't repeat this slipavoid_slip_idtext
The id of a slip you have already posted. The draw is repeated until it lands on something else, which costs about two and a half seconds per re-draw because of the service's own cache. Leave empty to take whatever comes. If every re-draw still lands on it, the slip is returned anyway with 'is_repeat' set rather than failing the step.

Outputs

avoided_slip_idnumber
The id the step was told not to repeat, or empty when it was given none.
is_repeattrue/false
True when every re-draw still landed on the slip it was told not to repeat, so this is that slip again.
redrawsnumber
How many times the draw was repeated to get past the slip it was told not to repeat.
slipobject
The piece of advice.
Example output
{
  "avoided_slip_id": 58,
  "is_repeat": false,
  "redraws": 0,
  "slip": {
    "advice": "Don't be afraid to ask questions.",
    "slip_id": 117,
    "url": "https://api.adviceslip.com/advice/117"
  }
}

Get random advice about a subject

Get one random piece of advice about a subject, such as work, money or friends: for a chat command that answers with advice on whatever someone asked about. Only advice where the subject starts a word counts, so 'friend' finds 'friends' but 'art' doesn't find 'start'. There is no two-second wait, unlike Get random advice. When no advice is about the subject the step still succeeds, with 'found' set to false and no slip, so the workflow can say so.

Inputs

SubjectsubjecttextRequired
A word or short phrase the advice should be about. Capital letters make no difference. It travels in the URL path, so it is limited to 100 characters.
Don't repeat this slipavoid_slip_idtext
The id of a slip you have already posted. It is left out of the pick whenever any other advice is about the subject. If it is the only one, it is returned anyway with 'is_repeat' set rather than failing the step.
Match inside wordsmatch_inside_wordstrue/false
Also count advice where the subject is inside a longer word, such as 'asleep' for 'sleep'. Off by default, because it also finds 'start' for 'art'.

Outputs

avoided_slip_idnumber
The id the step was told not to repeat, or empty when it was given none.
candidate_countnumber
How many pieces of advice are about the subject, which is how many it was picked from.
foundtrue/false
True when some advice is about the subject. When false, there is no slip.
is_repeattrue/false
True when the slip it was told not to repeat is the only advice about the subject, so this is that slip again.
slipobject
The piece of advice picked, or empty when none is about the subject.
subjecttext
The subject that was asked about.
Example output
{
  "avoided_slip_id": 204,
  "candidate_count": 1,
  "found": true,
  "is_repeat": false,
  "slip": {
    "advice": "Always drink a glass of water before your morning coffee.",
    "slip_id": 58,
    "url": "https://api.adviceslip.com/advice/58"
  },
  "subject": "coffee"
}

Get several pieces of advice

Get several different pieces of advice at once, up to 10. No slip is drawn twice in the same batch. The service returns one random slip per request and caches it for two seconds, so a batch waits that out between draws and takes roughly two and a half seconds per slip after the first, which is exactly why the same loop built by hand returns the same slip over and over.

Inputs

Number of slipscountnumber
How many pieces of advice to draw, from 1 to 10. Defaults to 3. Each one after the first adds about two and a half seconds to the step.From 1 to 10.

Outputs

requested_countnumber
How many pieces of advice were asked for.
slip_countnumber
How many came back. Fewer than asked for means the service kept handing back ones already drawn.
slipslist
The pieces of advice, each one different.
Example output
{
  "requested_count": 3,
  "slip_count": 3,
  "slips": [
    {
      "advice": "Always drink a glass of water before your morning coffee.",
      "slip_id": 58,
      "url": "https://api.adviceslip.com/advice/58"
    },
    {
      "advice": "Don't be afraid to ask questions.",
      "slip_id": 117,
      "url": "https://api.adviceslip.com/advice/117"
    },
    {
      "advice": "Sleep on a big decision before you make it.",
      "slip_id": 204,
      "url": "https://api.adviceslip.com/advice/204"
    }
  ]
}

Get today's published advice

Read the one piece of advice the service itself publishes each day, from its daily RSS feed. Everyone reading it that day gets the same advice, and it only ever covers today. To pick advice for a date of your own, or to give each workspace its own, use Get advice for a day instead.

Inputs

None.

Outputs

slipobject
Today's piece of advice, as the service's feed publishes it.
Example output
{
  "slip": {
    "advice": "Don't be afraid to ask questions.",
    "feed_title": "Advice Slip",
    "image_url": "https://api.adviceslip.com/advice/117/img/m",
    "published_at": "Tue, 15 Sep 2026 00:00:00 +0000",
    "slip_id": 117,
    "title": "Don't be afraid to ask questions.",
    "url": "https://adviceslip.com/#117"
  }
}

Search advice

Find the advice that mentions something: a subject, a habit or a word, best match first. The service publishes no relevance of its own, so matches are ranked here with a whole-word hit worth far more than one buried inside a longer word. A search that matches nothing comes back as an empty result rather than failing the step.

Inputs

Search forquerytextRequired
The word or phrase to look for in the advice. It travels in the URL path, so it is limited to 100 characters.
Number of resultslimitnumber
How many matches to return, from 1 to 100. Defaults to 10. The service's own total is always reported, however many are returned.From 1 to 100.

Outputs

match_countnumber
How many matches are listed here.
matcheslist
The matching advice, best match first.
querytext
What was searched for.
returned_alltrue/false
True when every match is listed, false when 'Number of results' left some out.
total_matchesnumber
How many slips the service says match in all.
Example output
{
  "match_count": 1,
  "matches": [
    {
      "advice": "Always drink a glass of water before your morning coffee.",
      "slip_id": 58,
      "url": "https://api.adviceslip.com/advice/58"
    }
  ],
  "query": "coffee",
  "returned_all": true,
  "total_matches": 1
}

On this page