# Using FluentCLI

***

### A most basic FluentCLI command example is:

This command calls the OpusChain (we don't know if it's Langflow or Flowise from here) and sends the request 'This is a test' to the chatflow.

A few moments later, the response is returned to the terminal as text.

```
fluent OpusChain 'This is a test'
```

<figure><img src="https://2467274695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCLfJPQjN34tS0eWZ4JVf%2Fuploads%2FFExHNbIwizWxmVC0mQa2%2FCleanShot%202024-04-30%20at%2015.42.39%402x.png?alt=media&#x26;token=211d3716-1d01-4249-848a-ceffe7df94a0" alt=""><figcaption></figcaption></figure>

***

### In this example, we echo the text, 'This is a test' to fluent's `stdin` input.  This is combined with the input question and sent to the OpusChain.   The two will be combined if I include a string in the request.

```
echo "This is a test" | fluent OpusChain ''
```

<figure><img src="https://2467274695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCLfJPQjN34tS0eWZ4JVf%2Fuploads%2FC5mNUYmy7I7lyliisEjh%2FCleanShot%202024-04-30%20at%2015.45.26%402x.png?alt=media&#x26;token=7bad62ac-6225-4ccf-8f18-85f95e9f9429" alt=""><figcaption></figcaption></figure>

***

### In this request, we combine 'What is this?' with 'This is a test' and send it to the LLM.

```
echo 'this is a test' | fluent OpusChain 'What is this? '
```

<figure><img src="https://2467274695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCLfJPQjN34tS0eWZ4JVf%2Fuploads%2F59rV8FJOnhgWSpAxoVNu%2FCleanShot%202024-04-30%20at%2015.46.24%402x.png?alt=media&#x26;token=6a15b862-0e51-4b51-8f6d-8ffd7b7265f3" alt=""><figcaption></figcaption></figure>

> ### Any text can be piped into fluent through `stdin`.  However, token size limits do apply.  If you exceed the size limit, you will receive a response like this:

{% code overflow="wrap" %}

```json
{"statusCode":500,"success":false,"message":"Error: predictionsServices.buildChatflow - 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 202122 tokens > 199999 maximum\"}}","stack":{}}
```

{% endcode %}

***

### Adding file contents to the request payload

{% code overflow="wrap" %}

```bash
fluent OpusChain 'analyze these data points. ' --additional-context-file /Users/n/Downloads/Financial Sample.csv
```

{% endcode %}

<figure><img src="https://2467274695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCLfJPQjN34tS0eWZ4JVf%2Fuploads%2FXIiU2keFwIHbREifGM9M%2FCleanShot%202024-04-30%20at%2015.52.21%402x.png?alt=media&#x26;token=95390d36-c82d-46be-9f23-33f9f3f8cc17" alt=""><figcaption></figcaption></figure>
