Skip to content
Nylas components are currently in private preview. They might contain bugs or errors, and might change considerably before they reach general availability (GA).

SendNotetaker component

The SendNotetaker component provides a user-facing option to send a Notetaker bot to a meeting by entering its URL. This is useful when users want to record a meeting that’s already in progress.

You need to set up a provider before you can use the SendNotetaker component.

Using the SendNotetaker component

import React, { useEffect } from "react";
import { SendNotetaker, provider as useProvider } from "@nylas/react";
// import '@nylas/react/style.css' // to style the component
function App() {
const provider = useProvider();
useEffect(() => {
// Necessary to set before using the component
provider.setAccessToken("nylas-access-token");
provider.setApiUrl("eu"); // can be "us" or "eu", defaults to "us"
}, []);
return (
<SendNotetaker
showNameInput={true}
showAdvancedSettings={false}
className="custom-send-notetaker"
onSend={(data, resetForm) => {
console.log("Notetaker sent:", data);
// Optionally reset the form after sending
resetForm();
}}
onError={(error) => console.error("Send error:", error)}
/>
);
}
export default App;

SendNotetaker properties

PropertyTypeDescription
className?stringOne or more additional class names for the container element.
onError?(error: any) => voidA callback generated when an error occurs during the send operation.
onSend?(data: Notetaker, resetForm: () => ...)
=> void
A callback generated after a successful send operation.
showAdvancedSettings?booleanDisplay the Advanced Settings section.
showNameInput?booleanDisplay the name input field.

sendNotetakerStore

This interface describes a Zustand store, an advanced state management React solution. This is intended for advanced use only – the Notetaker components will work without using this store directly.

The interface for the SendNotetaker component state store. sendNotetakerStore manages all form data and UI state information for the component.

import { SendNotetaker, sendNotetakerStore } from "@nylas/react"
export default function App() {
const store = sendNotetakerStore();
useEffect(() => {
store.setName("ExampleName")
}, [])
return (
<div>
<SendNotetaker />
</div>
)
}

sendNotetakerStore properties

advancedSettings

DescriptionDisplay the Advanced Settings section.
Typeboolean
Defaultfalse

date

DescriptionThe date on which the Notetaker bot will join the meeting.
Typestring

handleSubmit

DescriptionHandles form submission and sending information to the Notetaker API.
Type(onSend?: (data: ..., resetForm: ...) => ..., onError?: (error: ...) => ...) => void

isLoading

DescriptionIndicates that the component is loading or submitting the form.
Typeboolean
Defaultfalse

DescriptionThe URL that Notetaker will use to join the meeting.
Typestring

name

DescriptionThe name of the Notetaker bot. This is displayed in the meeting provider UI.
Typestring

reset

DescriptionResets all form fields and the store to their default values.
Type() => void

selectedRecordingTypes

DescriptionA list of selected recording types (video, audio, or transcript).
TypeRecordingType[]

setAdvancedSettings

DescriptionSets the visibility of the Advanced Settings section.
Type(show: boolean) => void

setDate

DescriptionSets the date on which the Notetaker bot will join the meeting.
Type(date: string) => void

setIsLoading

DescriptionSets the loading state.
Type(isLoading: boolean) => void

DescriptionSets the meeting link.
Type(meetingLink: string) => void

setName

DescriptionSets the name of the Notetaker bot.
Type(name: string) => void

setSelectedRecordingTypes

DescriptionSets the selected recording types.
Type(types: RecordingType[]) => void

setTime

DescriptionSets the time at which the Notetaker bot will join the meeting.
Type(time: string) => void

time

DescriptionThe time at which the Notetaker bot will join the meeting.
Typestring

toggleRecordingType

DescriptionToggles the specified recording type on or off.
Type(type: RecordingType) => void