> For the complete documentation index, see [llms.txt](https://wiki.4thtech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.4thtech.io/sdk/ethereum/chat/creategroupconversation.md).

# createGroupConversation

Creates a new group conversation with specified members, encryption settings, and member addition policies.

### Usage

```ts
const conversationName = 'Work Chat';
const isOnlyCreatorAllowedToAddMembers = true;
const isEncrypted = true;
const initialMembers = ['0xAddress1...', '0xAddress2...', '0xAddress3...'];

const txResponse = await chat.createGroupConversation(
  conversationName,
  isOnlyCreatorAllowedToAddMembers,
  isEncrypted,
  initialMembers,
);
```

### Returns

`Promise<EthereumTransactionResponse>`

A promise that resolves to the response from the `sendTransaction` method on the `walletClient` provided by the developer on `Chat` initialization.

### Parameters

#### conversationName

* **Type** `string`

The desired name for the new group conversation.

#### isOnlyCreatorAllowedToAddMembers

* **Type** `boolean`

Specifies whether only the creator of the group conversation can add new members. If set to true, other members cannot add participants to the group.

#### isEncrypted

* **Type** `boolean`

Determines if the group conversation should be encrypted. When set to true, all messages within the group will be encrypted.

#### members

* **Type** `Address[]`

An array of Ethereum addresses representing the initial members of the group conversation. Ensure that these addresses belong to valid participants you want to include in the group.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.4thtech.io/sdk/ethereum/chat/creategroupconversation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
