# xAI

### Integrate xAI

1. Select *Resources* from your workspace menu and choose *Integrations* card
2. Click *Add integration* > Choose *xAI* from the *Type* dropdown
3. Provide a name for the integration
4. [Log in to your xAI API console](https://docs.x.ai/docs/tutorial#step-1-create-an-xai-account)
5. Enter the API key into NLX

> Optional:
>
> * *Model name*: Enter a preferred Grok model ID (NLX defaults to grok-#-latest, if not provided). Alternatively, you may specify the model while invoking the LLM in conversation using a [*Generative* node](https://docs.nlx.ai/platform/nlx-platform-guide/flows-and-building-blocks/overview/nodes#node-types) type

6. Click *Create Integration*

### Next steps

To successfully use your xAI integration with conversations created in your workspace, be sure to complete the following:

* [ ] create a [flow](https://docs.nlx.ai/platform/nlx-platform-guide/flows-and-building-blocks/overview)
* [ ] add a [*Generative* node type](https://docs.nlx.ai/platform/nlx-platform-guide/flows-and-building-blocks/overview/nodes#node-types) to the Canvas and assign *xAI* as the integration > Provide your prompt (follow instructions under *Side panel* tab of *Generative* node instructions)
* [ ] create a [build & deploy](https://docs.nlx.ai/platform/nlx-platform-guide/ai-applications/types/core#deployment)
