# SendNotetaker component

Source: https://developer.nylas.com/docs/v3/components/notetaker-components/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.

> **Info:** 
> **You need to [**set up a provider**](/docs/v3/components/#set-up-provider) before you can use the `SendNotetaker` component**.

## Using the `SendNotetaker` component

```jsx

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;


```

## `SendNotetaker` properties

| Property                | Type                                                    | Description                                                          |
| ----------------------- | ------------------------------------------------------- | -------------------------------------------------------------------- |
| `className?`            | `string`                                                | One or more additional class names for the container element.        |
| `onError?`              | `(error: any) => void`                                  | A callback generated when an error occurs during the send operation. |
| `onSend?`               | `(data: Notetaker, resetForm: () => ...)`<br/>`=> void` | A callback generated after a successful send operation.              |
| `showAdvancedSettings?` | `boolean`                                               | Display the Advanced Settings section.                               |
| `showNameInput?`        | `boolean`                                               | Display the name input field.                                        |