UNPKG

@andrewcturing/google_dialogflow

Version:

Pipedream Google Dialogflow Components

26 lines (24 loc) 834 B
import googleDialogflow from "../../google_dialogflow.app.mjs"; export default { type: "action", key: "google_dialogflow-delete-context", version: "0.0.1", name: "Delete Context", description: "Deletes a context [See REST docs](https://cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.environments.users.sessions.contexts/delete) and [client API](https://googleapis.dev/nodejs/dialogflow/latest/google.cloud.dialogflow.v2beta1.Contexts.html#deleteContext2)", props: { googleDialogflow, name: { propDefinition: [ googleDialogflow, "name", ], description: "Context name(context path)", }, }, async run({ $ }) { await this.googleDialogflow.deleteContext({ name: this.name, }); $.export("$summary", "Context has been deleted."); }, };