---
schema_version: "1"
id: 9d7cccb349bd819de6a58ca787145107c8e42132f16ff0cd3deb68ba81a28000
title: Package Agentforce Metadata Components
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform-pkg-exchange/managed_packaging/guides/second-generation/dev2gp-packageable-agentforce-md.md
canonical_url: https://developer.salesforce.com/docs/platform/pkg2-dev/guide/dev2gp-packageable-agentforce-md.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1aeb9432def40f50f9eb3a251b70c1569391d751f93d34c6309d430a32aed879
products:
  - Second-Generation Managed Packaging Developer Guide
  - merged-docs
---

# Package Agentforce Metadata Components

Bring the power of conversational AI to your apps with Agentforce.

Before you add Agentforce metadata to your package:

- Review the setup steps in [Get Access to Scratch Orgs That Have Agentforce](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/dev2gp_scratch_orgs_agentforce.htm).
- Create your agent’s actions and topics in the Agentforce Asset Library. See [Create a Custom Agent Action](https://help.salesforce.com/s/articleView?id=ai.copilot_actions_custom.htm) and [Create a Custom Topic](https://help.salesforce.com/s/articleView?id=ai.copilot_topics_add_custom.htm) for instructions. Any agent action or topic that will be packaged must be in the Agentforce Asset Library.

| Feature Name     | Metadata Name                   | Available in …              | More Information                                                                                                                                                                                                                                                                                              |
| ---------------- | ------------------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Agent Actions    | GenAiFunction                   | Managed 2GP and Managed 1GP | [Agent Action](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/packaging_packageable_components.htm#mdc_genaifunction)                                                                                                                                                               |
| Agent Topics     | GenAiPlugin                     | Managed 2GP and Managed 1GP | [Agent Topic](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/packaging_packageable_components.htm#mdc_genaiplugin)                                                                                                                                                                  |
| Prompt Templates | GenAiPromptTemplate             | Managed 2GP and Managed 1GP | [Prompt Template](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/packaging_packageable_components.htm#mdc_genaiprompttemplate)                                                                                                                                                      |
| Agent Templates  | BotTemplate, GenAiPlannerBundle | Managed 2GP and Managed 1GP | [Bot Template](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/packaging_packageable_components.htm#mdc_bot_template), [Gen AI Planner Bundle](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/packaging_packageable_components.htm#mdc_genaiplannerbundle) |

**See Also**

- [Get Access to Scratch Orgs That Have Agentforce](https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/dev2gp_scratch_orgs_agentforce.htm)
- [_Salesforce Help_: Considerations for Packaging Prompt Templates](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_considerations_packaging.htm)
- [_Trailhead_: Quick Start: Build Your First Agent with Agentforce](https://trailhead.salesforce.com/content/learn/projects/quick-start-build-your-first-agent-with-agentforce)
- [_Salesforce Help_: Agentforce: Agents](https://help.salesforce.com/s/articleView?id=ai.copilot_intro.htm&type=5)
- [_Agentforce Developer Guide_](https://developer.salesforce.com/docs/einstein/genai/guide/get-started.html)
- [_Salesforce Help_: The Building Blocks of Agents](https://help.salesforce.com/s/articleView?id=ai.copilot_building_blocks.htm&type=5)
- [_Salesforce Help_: Customize Your Agents with Topics and Actions](https://help.salesforce.com/s/articleView?id=ai.copilot_topics_actions.htm&type=5)
- [_Salesforce Help_: Considerations for Agents](https://help.salesforce.com/s/articleView?id=ai.copilot_considerations.htm&type=5)
- [_Salesforce Help_: AI Project Success](https://help.salesforce.com/s/articleView?id=ai.generative_ai_plan_project.htm&type=5)
