## Migration
To migrate from the legacy chatbot component to the latest chatbot component, use the steps below:
import all0 from "/src/fragments/ui/web/installation-diff.mdx";
### Usage
```diff
- import { ChatBot } from 'aws-amplify-react';
+ import { AmplifyChatbot } from '@aws-amplify/ui-react';
const App = () => (
+
-
);
```
If you were using `onComplete` prop previously, you need to use `eventListener` [described above](/ui/interactions/chatbot#listening-to-chat-fulfillment).
import all1 from "/src/fragments/ui/angular/configure-module-diff.mdx";
_app.component.html_
```diff
+
-
```
import all3 from "/src/fragments/ui/vue/configure-app-diff.mdx";