Class ZapierNLAWrapper

A wrapper class for Zapier's Natural Language Actions (NLA). It provides an interface to interact with the 5k+ apps and 20k+ actions on Zapier's platform through a natural language API interface. This includes apps like Gmail, Salesforce, Trello, Slack, Asana, HubSpot, Google Sheets, Microsoft Teams, and many more.

Hierarchy

  • Serializable
    • ZapierNLAWrapper

Constructors

Properties

caller: AsyncCaller
zapierNlaApiBase: string = "https://nla.zapier.com/api/v1/"
zapierNlaApiKey?: string
zapierNlaOAuthAccessToken?: string

Methods

  • Returns a list of all exposed (enabled) actions associated with current user (associated with the set api_key or access token).

    Returns Promise<ZapierValues[]>

  • Same as list, but returns a stringified version of the result.

    Returns Promise<string>

  • Same as run, but instead of actually executing the action, will instead return a preview of params that have been guessed by the AI in case you need to explicitly review before executing.

    Parameters

    • actionId: string
    • instructions: string
    • Optional params: ZapierValues

    Returns Promise<ZapierValues>

  • Same as preview, but returns a stringified version of the result.

    Parameters

    • actionId: string
    • instructions: string
    • Optional params: ZapierValues

    Returns Promise<string>

  • Executes an action that is identified by action_id, must be exposed (enabled) by the current user (associated with the set api_key or access token).

    Parameters

    • actionId: string
    • instructions: string
    • Optional params: ZapierValues

    Returns Promise<ZapierValues>

  • Same as run, but returns a stringified version of the result.

    Parameters

    • actionId: string
    • instructions: string
    • Optional params: ZapierValues

    Returns Promise<string>

Generated using TypeDoc