---
sidebar_position: 1
title: Embed Agent Via Webpage
sidebar_label: Embed Agent Via Webpage
slug: /embed_agent_via_webpage
sidebar_custom_props: {
  categoryIcon: RagAiAgent
}
---

# Embed Agent Via Webpage
You can embed the Agent into third-party web pages using iframe.

Prerequisite: You must obtain an API Key.

Steps:
1. On the Agent page, click the target Agent to open its editing page.
2. Click **Manage > Embed Webpage** in the upper right corner of the canvas to open the iframe window.
3. Copy the iframe code and embed it into your webpage.

![Embed An Agent Web Page](https://raw.githubusercontent.com/infiniflow/ragflow-docs/main/images/embed_an_agent_web_page.jpg)
