Skip to main content

Class: ZapierNLAWrapper

tools.ZapierNLAWrapper

Constructors

constructor

new ZapierNLAWrapper(params?)

Parameters

NameType
params?string | ZapiterNLAWrapperParams

Defined in

langchain/src/tools/zapier.ts:33

Properties

caller

caller: AsyncCaller

Defined in

langchain/src/tools/zapier.ts:31


zapierNlaApiBase

zapierNlaApiBase: string = "https://nla.zapier.com/api/v1/"

Defined in

langchain/src/tools/zapier.ts:29


zapierNlaApiKey

zapierNlaApiKey: string

Defined in

langchain/src/tools/zapier.ts:27

Methods

_getActionRequest

Protected _getActionRequest(actionId, instructions, params?): Promise<ZapierValues>

Parameters

NameType
actionIdstring
instructionsstring
params?ZapierValues

Returns

Promise<ZapierValues>

Defined in

langchain/src/tools/zapier.ts:59


_getHeaders

Protected _getHeaders(): Record<string, string>

Returns

Record<string, string>

Defined in

langchain/src/tools/zapier.ts:51


listActions

listActions(): Promise<ZapierValues[]>

Returns a list of all exposed (enabled) actions associated with current user (associated with the set api_key). Change your exposed actions here: https://nla.zapier.com/demo/start/

Returns

Promise<ZapierValues[]>

Defined in

langchain/src/tools/zapier.ts:135


listActionsAsString

listActionsAsString(): Promise<string>

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

Returns

Promise<string>

Defined in

langchain/src/tools/zapier.ts:184


previewAction

previewAction(actionId, instructions, params?): Promise<ZapierValues>

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

NameType
actionIdstring
instructionsstring
params?ZapierValues

Returns

Promise<ZapierValues>

Defined in

langchain/src/tools/zapier.ts:119


previewAsString

previewAsString(actionId, instructions, params?): Promise<string>

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

Parameters

NameType
actionIdstring
instructionsstring
params?ZapierValues

Returns

Promise<string>

Defined in

langchain/src/tools/zapier.ts:172


runAction

runAction(actionId, instructions, params?): Promise<ZapierValues>

Executes an action that is identified by action_id, must be exposed (enabled) by the current user (associated with the set api_key). Change your exposed actions here: https://nla.zapier.com/demo/start/

Parameters

NameType
actionIdstring
instructionsstring
params?ZapierValues

Returns

Promise<ZapierValues>

Defined in

langchain/src/tools/zapier.ts:102


runAsString

runAsString(actionId, instructions, params?): Promise<string>

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

Parameters

NameType
actionIdstring
instructionsstring
params?ZapierValues

Returns

Promise<string>

Defined in

langchain/src/tools/zapier.ts:157