---
schema_version: "1"
id: 8991568ecab038646e35ad8a1e7a760dac2def8ec59354ac1efd0993fe902e33
title: Execute the Code Extension Workflow by Using Agentforce Vibes
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-code-ext/guides/use-agentforce-vibes-ide-code-extension.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-code-ext/guide/use-agentforce-vibes-ide-code-extension.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1bac66502e114403c0faa18bb14046e18828f5b37de29c9804d802db59656124
products:
  - Data 360 Code Extension Guide
  - Data 360 Developer Documentation
---
# Execute the Code Extension Workflow by Using Agentforce Vibes

Author, debug, and deploy Data 360 code extensions by using natural-language prompts in Agentforce Vibes IDE. You can also use local IDEs, such as VS Code, Windsurf, and Cursor, where the Agentforce Vibes extension is enabled.

Prompts work best when you follow the natural workflow sequence—each step builds on context from the previous one. The exact wording of your prompt is flexible. Agentforce Vibes uses the built-in Data 360 skill context to interpret your intent and carry out the action.

| Edition Table                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Available in: **Developer**, **Enterprise**, **Performance**, and **Unlimited** Editions. See [Data 360 edition availability](https://help.salesforce.com/s/articleView?id=sf.c360_a_dc_editions.htm&type=5). |

| User Permissions Needed                                                                              |                                                        |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| To author and deploy Data 360 code extensions by using natural-language prompts in Agentforce Vibes: | Permission set: <ul><li>Data Cloud Architect</li></ul> |

## Prerequisites

- Make sure that you have access to a Data 360 sandbox and the **Data Cloud Architect** permission set. If you don't have a sandbox, create one. See [Create a Data 360 Sandbox](https://help.salesforce.com/s/articleView?id=data.c360_a_data_cloud_sandbox_create.htm&type=5).

- Enable code extension in Data 360 Setup by using Feature Manager. See [Enable Data 360 Features in Feature Manager](https://help.salesforce.com/s/articleView?id=data.c360_a_feature_manager.htm&language=en_US&type=5).

- **Agentforce Vibes IDE**: Set up Agentforce Vibes IDE from your org and enable it. See [Set Up Agentforce Vibes IDE](https://developer.salesforce.com/docs/platform/code-builder/guide/codebuilder-setup.html) and [Enable Agentforce Vibes IDE](https://developer.salesforce.com/docs/platform/code-builder/guide/codebuilder-enable-install.html#enable-agentforce-vibes-ide).

- **Local IDE (For example, VS Code or Cursor):**
  - Set up Salesforce CLI for Code Extension. See [Set Up Salesforce CLI for Code Extension](https://developer.salesforce.com/docs/data/data-cloud-code-ext/guide/set-up-sdk.md).

  - Set up Agentforce Vibes extension. See [Set Up Agentforce Vibes Extension](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/devagent-setup.html).

## Complete the Code Extension Workflow

1. Enable skills for Agentforce Vibes if you haven't already. See [Enable Skills](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/skills.html#enable-skills).

2. Update the Salesforce Skills version to the latest available version by enabling the Auto Update Skills setting. See [Salesforce Skills in Agentforce Vibes](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/skills.html#salesforce-skills-in-agentforce-vibes).

3. Ensure that you have these Salesforce skills, which are enabled by default.

   | Skill                             | Description                                                                                                                          |
   | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
   | `data360-code-extension-generate` | Guides end-to-end code extension development and deployment.                                                                         |
   | `data360-schema-get`              | Retrieves DLO and DMO schema metadata so that you can validate object and field names before testing and deploying a code extension. |

   **note:** The `data360-code-extension-generate` skill installs the Code Extension plugin for the Salesforce CLI and the Data Custom Code Python SDK automatically if they aren't already present.

4. Before you start prompting, note these expected behaviors.
   - Agentforce Vibes can pause and ask you to review and approve certain commands before running them. For example, terminal commands or file operations that aren't pre-approved. When prompted, review the proposed action and click **Run Command** to approve or **Reject** to cancel.
   - Agentforce Vibes can ask for your org alias during the workflow. For example, running local tests or deploying. Sometimes, it determines the org automatically by running `sf org list`. If prompted, provide your org alias to continue.

5. In Agentforce Vibes chat, describe each workflow action. For example, use these prompts.
   1. **Initialize a code extension package.**

      `create new code extension script package named code_extension_pkg_1`

   2. **Author the script.**

      `Refer to @/code_extension_pkg_1/payload/entrypoint.py and modify that file to read Employee DLO and write to Employee_Hierarchy DLO. Make sure to compute values for all the fields of Employee_Hierarchy DLO.`

      Agentforce Vibes uses the `data360-schema-get` skill to retrieve schema context and the `data360-code-extension-generate` skill to update `payload/entrypoint.py` based on your prompt.

   3. **Test locally.**

      `test it locally`

   4. **Deploy.**

      `deploy it`

## Next Step

- [Invoke Code Extension by Creating a Batch Data Transform](https://developer.salesforce.com/docs/data/data-cloud-code-ext/guide/create-batch-transform.md)

## See Also

- [Write and Validate Custom Scripts](https://developer.salesforce.com/docs/data/data-cloud-code-ext/guide/author-custom-script.md)
- [Deploy a Custom Script to Data 360 Sandbox by using CLI](https://developer.salesforce.com/docs/data/data-cloud-code-ext/guide/deploy-custom-script-cli.md)
- [Quick Start](https://developer.salesforce.com/docs/data/data-cloud-code-ext/guide/quickstart.md)
