# 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.md)
- [*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)
