Create link artifacts
To create a link artifact, use thecreate_link_artifact() function.
To create multiple versions of the same artifact and/or view them on the Artifacts page of the Prefect UI,
provide a key argument to the create_link_artifact() function to track the artifact’s history over time.
Without a key, the artifact is only visible in the Artifacts tab of the associated flow run or task run.

- its associated flow run or task run id
- previous and future versions of the artifact (multiple artifacts can have the same key to show lineage)
- data (in this case a Markdown-rendered link)
- an optional Markdown description
- when the artifact was created or updated
link_text argument:
create_link_artifact method is used within a flow to create a link artifact with a key of my-important-link.
The link parameter specifies the external resource to link to, and link_text specifies the text to display for the link.
Add an optional description for context.
Create progress artifacts
Progress artifacts render dynamically on the flow run graph in the Prefect UI, indicating the progress of long-running tasks. To create a progress artifact, use thecreate_progress_artifact() function. To update a progress artifact, use the update_progress_artifact() function.

update_progress_artifact() function. Prefect updates a progress artifact in place, rather than versioning it.
Create Markdown artifacts
To create a Markdown artifact, you can use thecreate_markdown_artifact() function.
To create multiple versions of the same artifact and/or view them on the Artifacts page of the Prefect UI, provide a key argument to the create_markdown_artifact() function to track an artifact’s history over time.
Without a key, the artifact is only visible in the Artifacts tab of the associated flow run or task run.

Create table artifacts
Create a table artifact by callingcreate_table_artifact().
To create multiple versions of the same artifact and/or view them on the Artifacts page of the Prefect UI, provide a key argument to the create_table_artifact() function to track an artifact’s history over time.
Without a key, the artifact is only visible in the artifacts tab of the associated flow run or task run.
The
create_table_artifact() function accepts a table argument. Pass this as a list of lists, a list of dictionaries, or a dictionary of lists.
Create image artifacts
Image artifacts render publicly available images in the Prefect UI. To create an image artifact, use thecreate_image_artifact() function.

create_link_artifact() function instead.
Reading artifacts
In the Prefect UI, you can view all of the latest versions of your artifacts and click into a specific artifact to see its lineage over time. Additionally, you can inspect all versions of an artifact with a given key from the CLI by running:Fetching artifacts
In Python code, you can retrieve an existing artifact with theArtifact.get class method: