clara42x-react-widget
v1.0.4
Published
Este componente react permite agregar de forma fácil el widget de Claro dentro de tus aplicaciones web. Para utilizarlo debes seguir los siguientes pasos:
Downloads
67
Readme
Clara widget by 42x
Este componente react permite agregar de forma fácil el widget de Claro dentro de tus aplicaciones web. Para utilizarlo debes seguir los siguientes pasos:
- Ingresar a https://coworkers.42x.ai/es/clara/settings/assistants/ para crear un nuevo asistente.
- Cuando tengas al asistente creado, debes obtener el widget-id
- Anda a tu aplicación react y instala la libreria utilizando `npm i clara42x``
- En tu aplicacion debes agregar el siguiente código:
import Clara42x from "clara42x";
export default function App(
const user = {
id: "user-id",
name: "User Name",
email: "[email protected]",
};
return (
<>
<Clara42x
widget_id={YOUR_WIDGET_ID}
user_id={user.id}
name={user.name}
email={user.email}
/>
</>
);
}
Con eso ya podrás utilizar el widget de Clara en tu apliacion web.