Skip to content
Skip to main content

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.

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}
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;
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.