Artifacts are persisted outputs designed for human consumption and available in the UI.
Prefect artifacts:
Common use cases for artifacts include:
There are five artifact types:
Each artifact created within a task is displayed individually in the Prefect UI.
This means that each call to create_link_artifact()
or create_markdown_artifact()
generates a distinct artifact.
Unlike the Python print()
function (where you can concatenate multiple calls to include additional items in a report),
these artifact creation functions must be called multiple times, if necessary.
To create artifacts such as reports or summaries using create_markdown_artifact()
, define your message string
and then pass it to create_markdown_artifact()
to create the artifact.
For more information on how to create and use artifacts, see the how to produce workflow artifacts guide.