With Awell Extensions you can tie together the apps you already use for CareOps into your care flows.
Integrate with EHRs, communication providers, form providers, eSignature... all with the click of a button.
We provide developers with an easy to use SDK (in Typescript 🎉) so anyone can build extensions.
import twilioSdk from 'twilio'
import { actionFields, extensionSettings } from './config'
import { type Action } from '@/types'
export const sendSms: Action<typeof actionFields, typeof extensionSettings> = {
key: 'sendSms',
title: 'Send SMS',
category: 'Communication',
fields: actionFields,
onActivityCreated: async (payload, onComplete, onError) => {
try {
const {
settings: { accountSid, authToken, fromNumber },
fields: { recipient, message },
} = payload
const client = twilioSdk(accountSid, authToken, {
region: 'IE1',
accountSid,
})
await client.messages.create({
body: message,
from: fromNumber,
to: recipient,
})
await onComplete()
} catch (err) {
await onError()
}
}
}
Create custom webhook endpoints any system can send requests to. You have full control about how to handle the incoming webhook and the actions that need to be performed in the Awell system.
If you can't find what you're looking for, you can always send us a message over Intercom with your enquiry.