Integrating Robin in your Nuxt.js app
Last updated
Was this helpful?
Last updated
Was this helpful?
Because Nuxt is built on Vue, the integration process is kind of similar to . However, due to Nuxt’s Server-Side Rendering (SSR) feature, there are a few extra things we need to take note of.
To integrate Robin in your Nuxt app, there are a couple of requirements you need to get ready:
API Key - The unique key for your Robin App. Visit to learn more.
User token () and name - These are what Robin uses to identify you as a user of a Robin app.
Users - The users you want available on your app (i.e all the users you might want to have conversations with).
When you have these ready, you can go ahead with the integration.
In your plugins
directory, create a robin.js
file with the plugin setup:
If you do not specify the Robin plugin as a plugin in your nuxt.config.js
file, it won’t be available in your Nuxt app.
This is where you use the Robin UI Kit in your Nuxt app. Here, you’ll make use of those prerequisites we discussed earlier.
One of the props passed to the RobinChat
component above is the keys
prop. This prop was not included as one of the prerequisites because it is optional. However, it is something you should take note of. See to completely understand it.