---
title: "useMakeCopilotActionable"
description: "A hook for providing actions the Copilot can call."
---
`useMakeCopilotActionable` is a React hook that lets you integrate
actionable functions in the Copilot chat. The Copilot can then call these
actions to trigger actions in your application, allowing for interactive
and dynamic behavior controlled by the Copilot.
```jsx useMakeCopilotActionable Example
useMakeCopilotActionable(
{
name: "sayHello",
description: "Say hello to someone.",
argumentAnnotations: [
{
name: "name",
type: "string",
description: "name of the person to say greet",
required: true,
},
],
implementation: async (name: string) => {
alert(`Hello, ${name}!`);
},
},
[],
);
```
## Parameters
The function made available to the Copilot. See [AnnotatedFunction](#annotatedfunction).
## AnnotatedFunction
The name of the function.
A description of the function. This is used to instruct the Copilot
on how to use the function.
Annotated arguments for the function. See [AnnotatedFunctionArgument](#annotatedfunctionargument).
The implementation of the function.
## AnnotatedFunctionArgument
The name of the argument.
The type of the argument.
A description of the argument. This is used to instruct the Copilot
on how what this argument is used for.
Wether or not the argument is required.
If the argument is an array, this field describes the items in the array, i.e.:
```js
items: {
type: string;
}
```