Contact Us

May 19, 2025

June 23, 2026 5:47 pm

Resolving generative ai functions deployment issues in Agentforce

Share with

Understanding the Deployment Process

To resolve the issue, it is essential to understand the deployment process and the sequence in which components should be deployed. The correct sequence is crucial to ensure that all dependencies are properly handled.

Root Cause of the Issue

The root cause of the issue is the incorrect deployment sequence, leading to unresolved dependencies and preventing the successful deployment of Generative AI Functions.

Step-by-Step Solution

To deploy Generative AI Functions successfully, follow these steps:

Deployment Sequence

1. Deploy any Apex classes or Flow dependencies used in the action.
2. Deploy the GenAI Function (action).
3. Deploy the GenAI Plugin (topic).
4. Deploy the GenAI Planner (agent).
5. Finally, deploy the Bot and Bot versions and associated channels where the agent is exposed.

Heads up: Ensure that you validate the steps and deploy the components in the specified sequence to avoid any issues.

Checklist for Deployment

Pre-Deployment Checklist

  • Validate the deployment sequence.
  • Ensure all dependencies are handled.
  • Deploy Apex classes or Flow dependencies first.
  • Deploy the GenAI Function and Plugin.
  • Deploy the GenAI Planner and Bot.
  • Test the deployment to ensure successful integration.

Frequently Asked Questions

What is the correct deployment sequence for Generative AI Functions?

The correct sequence is to deploy Apex classes or Flow dependencies, followed by the GenAI Function, Plugin, Planner, and finally the Bot and associated channels.

Why are my Generative AI Functions not being pulled into the metadata?

This issue occurs when the planner bundle does not automatically pull in new or changed functions, requiring a manual deployment process.

Can I use change sets or the CLI for deployment?

Yes, you can use change sets or the CLI for deployment, but ensure you follow the correct sequence and handle dependencies properly.

What are the common issues encountered during deployment?

Common issues include unresolved dependencies, incorrect deployment sequence, and failure to validate the deployment steps.

Genetrix Technology · Salesforce Marketing Cloud Partner

Need help shipping this in production?

Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.

Get in Touch with Genetrix →

Blogs for the

Business-Savvy!​

Let’s Connect

A 30 min no cost strategy session
with cloud support expert

Let’s Connect

A 30 min no cost strategy session
with cloud support expert