FoundationModels.BeginSession
-----------------------------

Start a new session in blank slate state with instructions.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FoundationModels](component_FoundationModels.md) | [15.5](newinversion155.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "FoundationModels.BeginSession"; FoundationModel; Instructions ) 

**MBS**( **"FoundationModels.BeginSession";** /\* Start a new session in blank slate state with instructions. \*/  
**$FoundationModel**; /\* The identifier for the model.e.g. $model \*/   
**$Instructions**) /\* The instructions."e.g. "Be polite." \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FoundationModel | The identifier for the model. | $model |
| Instructions | The instructions." | "Be polite." |

### Result

Returns OK or error.

### Description

Start a new session in blank slate state with instructions.  
### Examples

Start a session:

 Set Variable \[ $unavailable ; Value: MBS ("FoundationModels.BeginSession"; "Be polite. You run as chat bot in FileMaker.") \]  
### See also

- [FoundationModels.CloseSession](FoundationModelsCloseSession.md)
- [FoundationModels.Respond](FoundationModelsRespond.md)

### Example Databases

- [Mac and iOS/Foundation Models](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Foundation%20Models.shtml#2ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 15.5](https://www.mbsplugins.de/archive/2025-11-25/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [Use Foundation Models in FileMaker](https://www.mbsplugins.de/archive/2025-10-02/Use_Foundation_Models_in_FileM/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th September 2025 , last changed 27th September 2025

  
[FoundationModels.AvailableStatus](FoundationModelsAvailableStatus.md) - [FoundationModels.CloseSession](FoundationModelsCloseSession.md)

[HTML Version](FoundationModelsBeginSession.shtml)