--- title: "Integrate Code Station" slug: "mindbehind-integrate-code-station" description: "Learn how to integrate Code Station with MindBehind, including setup steps to connect and run custom logic and workflows in your chatbot." tags: ["code station editor", "code station", "code station parameters"] updated: 2026-02-13T17:24:37Z published: 2026-02-13T17:24:37Z canonical: "academy.insiderone.com/mindbehind-integrate-code-station" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Integrate Code Station The Code Station module is a tool for executing JavaScript code to handle specific user requests. While the Assistant's modules typically provide solutions, custom code snippets might be required for unique situations. These snippets offer flexibility within the flow, enabling tailored problem-solving. Each generated code block is specific to the relevant company, ensuring that code created for one company remains inaccessible to others, preserving privacy and security. Before creating the Code Station module, it is crucial to create a Secret Key if you don't already have one. This guide aims to provide answers to these questions: - [How can I create a Secret Key?](/v1/docs/code-station-mb#create-a-secret-key) - [How can I create a Code Station module?](/v1/docs/code-station-mb#create-the-code-station-module) ## Create a Secret Key Secret Key is not always required for your Code Station module, but if it is, you can follow the steps below to create a Secret Key before [creating your Code Station module](/v1/docs/code-station-module#create-the-code-station-module): 1. Click the **Companies** option on the navigation bar.![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/cm1*.png) 2. On the Companies page, select your company. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/mycomp*.png) 3. You will land on the Company Management page. Click on the **Code Station** tab. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/csn*(1).png) 4. Click on the **Secret Manager** button on the top left. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/sm*.png) 5. Define a name for your **Secret Key**, select the necessary **Property Type**, and add your key with **Property key** and **value**. Click the **Add** button. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/secretk*.png)Now that you have your **Secret Key**, you can proceed to create your Code Station module. ## Create the Code Station module 1. Click on the **Code Station** tab on your Company page. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/csn*.png) 2. Click the **Add Code Block** button. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/addcb.png) 3. Click the **Select** button for the "Create from Scratch" option.![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/selectt*.png) 4. After you name your code block, click the **Add Code Block** button. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/addcb(1).png) 5. You will see your code block added on the Code Station page. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/mycb*.png) Now, you have created your code block from scratch. If you want to create it from a template, refer to the [Code Station Templates](/docs/mindbehind-code-station-templates). If you want to edit your code block, you can click on your code block to access the Code Station Editor screen. You can also add your parameters in the **Parameters** section and choose your Secret Key from the **Environment** section on this screen. Click the **Save** button to save all your changes on the Code Station Editor.![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/editorcb.png)