> This page is for version Scripted.
> For other versions, use one of these documentation indexes:
> - Generative (default): https://developers.ada.cx/generative/llms.txt
> - Scripted: https://developers.ada.cx/scripted/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.ada.cx/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.ada.cx/_mcp/server.

# Manage leads using the Marketo app

## Overview\[#UUID-25a5d7b7-6094-74c6-0267-6fa033d039af_id_4411560802195_id_h_01FNPJ14R2W0XW966M076PTKP2]

With the Marketo Action Block, you can perform the following actions in
Marketo, all from within your bot:

* Create or update a lead

* Lookup a lead by email

* Lookup a lead by munchkin cookie—the cookie will need to be passed to
  Ada through metaFields

> **Note**
>
> This feature may not be included with your organization's subscription
> package. For more information, see Ada's
> [Pricing](https://www.ada.cx/pricing) page, or contact your Ada team.

Before using the Marketo Action block, you need to configure the
integration with Marketo in the Ada dashboard.

## Configure the Marketo action\[#UUID-25a5d7b7-6094-74c6-0267-6fa033d039af_id_4411560802195_id_h_01FNPJ1A69Z87QPVK1HSH3QDD9]

> **Note**
>
> You need to have the Marketo integration activated for your Ada account
> before you can proceed with the configuration steps. If you don't see
> the configuration card in the Ada Integrations view, speak with your Ada
> team about adding it to your account.

You'll need to provide some specific information from your Marketo
account to complete the configuration for Ada. You may want to have your
Marketo environment open while you complete the configuration steps.

Here's how to configure Marketo for Ada:

1. On the Ada dashboard, go to **Settings** > **Integrations**.

2. In the Integrations view, scroll down to App Integrations. Find the
   Marketo integration card in the list, then Click **Connect**. The
   Marketo configuration dialog opens.

![](/_fern-files/_img/1256c62bbde574369165115dc353f2ab498957c3dc1af4e8aa74a44fd9c887c4.webp)

3. In the Marketo configuration dialog, complete the three fields with
   your corresponding Marketo account information. Follow the links
   below to see where to find each item.

   * [Marketo Base URL](https://developers.marketo.com/rest-api/base-url/)

   * [Client ID](https://developers.marketo.com/rest-api/authentication/)

   * [Client secret](https://developers.marketo.com/rest-api/authentication/)

![](/_fern-files/_img/56d1e2151ebb0f379a13a0eed430fb17384d4d90a4a0826edf0d6faa5a2719a4.webp)

4. Click **Save**.

## Configure the Marketo Block\[#UUID-25a5d7b7-6094-74c6-0267-6fa033d039af_id_4411560802195_id_h_01FNPJ1FCR01E7005BJ9JF4ZV3]

To use the Marketo Action block:

1. In the Answers view, open an Answer or create a new one. [Drag and drop](/scripted/docs/build-and-maintain-your-bot/work-with-blocks-and-apps/build-answers-using-blocks#UUID-0270b195-16c9-8157-9072-0da840587a7a_id_360059580093_id_h_18488a33-3b65-43de-9378-e76612787af3)
   the Marketo block into your Answer.

2. In the Marketo block, click the **Select Action** drop-down menu,
   then select an action from the list:

   <table>
     <tbody>
       <tr>
         <td>
           **Create Lead/Update Lead**
         </td>

         <td>
           These options automatically create/update a person object in
           Marketo when the block is triggered in an Answer.

           To save the Person ID in Ada:

           1. Click the **Select Optional Variables
              (*Id*)** drop-down menu and select **Id**
              from the list.
           2. Click the **Choose a Variable** drop-down menu, then
              select a variable or create a new one. This is the variable the Id saves
              to.
         </td>
       </tr>

       <tr>
         <td>
           **Search Lead by Email/Search Lead by Munchkin
           Cookie**
         </td>

         <td>
           Select one of these options to search persons in Marketo by
           email, or by Munchkin Cookie.

           1. Click the **Select Optional Inputs** drop-down menu,
              then select either **email**, or **Marketo Munchkin
              Cookie**, according to the search action you selected. The input
              field appears.
           2. Add the appropriate variable to the input field.
         </td>
       </tr>
     </tbody>
   </table>

   ![](/_fern-files/_img/aa6986a3ea78c8f58f738d10e671d29102c96705968afe9211110506fffb79f3.webp)

3. Under Fallback Answer, click the **Choose an Answer** drop-down
   menu, then select a fallback Answer with messaging for your chatters
   should something prevent the block connecting to the Marketo API.

4. \[Optional] If you wish you can track this block's action as an
   Event. Under Track Event, click the **Select or create an Event**
   drop-down menu, then choose an existing Event or [create a new one](/scripted/docs/measure-success/plan-and-collect-feedback/create-and-track-chatter-actions).

5. Click **Save**.

Now you're equipped to leverage your bot to generate leads from your
among your chatters.

---

Have any questions? Contact your Ada team, or email us at [](<mailto:help@ada.support%20%E2%80%9CHelp Docs inquiry%E2%80%9D>).