# bot-framework-mutant-whats-adapter

> Mutant Whats é a solução da Mutant de integração com o WhatsApp Business API. Este pacote é um adapter para integração do botframework e o MutantWhats.

Latest version **0.1.3** (published 2022-05-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install bot-framework-mutant-whats-adapter
pnpm add bot-framework-mutant-whats-adapter
yarn add bot-framework-mutant-whats-adapter
bun add bot-framework-mutant-whats-adapter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2022-05-18 |
| First published | 2022-05-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | Ozeias Costa |
| Maintainers | ozscosta |
| Keywords | bot framework, bot, mutant, mutant whats, whatsapp, adapter |

## Links

- npm: https://www.npmjs.com/package/bot-framework-mutant-whats-adapter
- npm.io page: https://npm.io/package/bot-framework-mutant-whats-adapter

## Dependencies (5)

- [axios](https://npm.io/package/axios.md) ^0.27.2
- [form-data](https://npm.io/package/form-data.md) ^4.0.0
- [botbuilder](https://npm.io/package/botbuilder.md) ^4.16.0
- [lambda-log](https://npm.io/package/lambda-log.md) ^3.1.0
- [@botbuildercommunity/core](https://npm.io/package/@botbuildercommunity/core.md) ^1.0.1

## Recent versions

- 0.1.3 (latest) — 2022-05-18
- 0.1.2 — 2022-05-18
- 0.1.1 — 2022-05-18
- 0.1.0 — 2022-05-17

## README

# Mutant Whats Adapter to Microsoft Bot Framework

Mutant Whats é a solução da Mutant de integração com o WhatsApp Business API. Este pacote é um adapter
para integração do botframework e o MutantWhats.

Para usá, é necessário apenas importá-la no arquivo principal

```js

const { MutantWhatsAdapter } = require('bot-framework-mutant-whats-adapter')

// [...]

const mutantWhatsAdapter = new MutantWhatsAdapter({
    id: 'ID do bot',
    name: 'Nome do bot'
})

// [...]

const router = express.Router()

router.post('/start-conversation', async (req, res) => {
    log.info('/start-conversation', { request_body: req.body })

    try {
        await mutantWhatsAdapter.processActivity(req, res, "start-conversation", async (context) => {
            await bot.run(context)
        })
    } catch (e) {
        log.error(e)
    }
})

router.post('/message', async (req, res) => {
    log.info('/message', { request_body: req.body })

    try {
        await mutantWhatsAdapter.processActivity(req, res, "message", async (context) => {
            await bot.run(context)
        })
    } catch (e) {
        log.error(e)
    }
})

```

---
_Source: https://npm.io/package/bot-framework-mutant-whats-adapter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
